mirror of
https://github.com/pyenv/pyenv.git
synced 2026-09-10 07:36:16 -04:00
send diagnostics to stderr
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
parent
fbd0abd3f7
commit
b8c7b387bf
|
|
@ -71,9 +71,9 @@ if [ -n "$MODIFY_ENV" ]; then
|
|||
# Check if multiple Python versions are selected
|
||||
VERSIONS=$(pyenv-prefix)
|
||||
if [[ "$VERSIONS" == *:* ]]; then
|
||||
echo 'Warning: multiple Python versions are selected'
|
||||
echo 'Warning: multiple Python versions are selected' >&2
|
||||
VERSION="${VERSIONS%%:*}"
|
||||
echo "Using the first one available (${VERSION##*/})"
|
||||
echo "Using the first one available (${VERSION##*/})" >&2
|
||||
else
|
||||
VERSION="$VERSIONS"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue