mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13:53 -05:00
Don't duplicate shims in PATH
This commit is contained in:
committed by
Mislav Marohnić
parent
ea3203dbab
commit
03fa148e81
@@ -73,7 +73,9 @@ fi
|
|||||||
|
|
||||||
mkdir -p "${RBENV_ROOT}/"{shims,versions}
|
mkdir -p "${RBENV_ROOT}/"{shims,versions}
|
||||||
|
|
||||||
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
|
if [[ ":${PATH}:" != *:"${RBENV_ROOT}/shims":* ]]; then
|
||||||
|
echo 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
|
||||||
|
fi
|
||||||
|
|
||||||
case "$shell" in
|
case "$shell" in
|
||||||
bash | zsh )
|
bash | zsh )
|
||||||
|
|||||||
Reference in New Issue
Block a user