mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Check for shims in path with pure Bash (#1978)
Closes https://github.com/pyenv/pyenv/issues/1921
This commit is contained in:
parent
fadb3f3389
commit
859b260764
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ function print_path() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function warn_path() {
|
function warn_path() {
|
||||||
if ! perl -ls0x3A -e 'while (<>) { chomp; ($_ eq $d) && exit 0; } exit 1' -- -d="${PYENV_ROOT}/shims" <<<"$PATH" ; then
|
if ! [[ ":${PATH}:" == *":${PYENV_ROOT}/shims:"* ]] ; then
|
||||||
echo 'echo '\''WARNING: `pyenv init -` no longer sets PATH.'\'
|
echo 'echo '\''WARNING: `pyenv init -` no longer sets PATH.'\'
|
||||||
echo 'echo '\''Run `pyenv init` to see the necessary changes to make to your configuration.'\'
|
echo 'echo '\''Run `pyenv init` to see the necessary changes to make to your configuration.'\'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue