mirror of
https://github.com/pyenv/pyenv.git
synced 2026-10-03 07:51:06 +09:00
Handle osx specific ln option name (#1)
On OSX `ln` does not have `--symbolic` only `-s`. * bin/pyenv-link-version --------- Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
This commit is contained in:
parent
b8d8dee191
commit
2f8cb2cf1f
@ -131,7 +131,14 @@ pyenv_prefix_path="$PYENV_ROOT/versions/$venv_name"
|
|||||||
|
|
||||||
# link to pyenv version directory
|
# link to pyenv version directory
|
||||||
if [ -z "$dry" ]; then
|
if [ -z "$dry" ]; then
|
||||||
ln --symbolic "$venv_dir" "$pyenv_prefix_path"
|
# Handle OS types
|
||||||
|
case "$(uname -s)" in
|
||||||
|
Darwin*)
|
||||||
|
# long form flags aren't supported
|
||||||
|
ln -s "$venv_dir" "$pyenv_prefix_path";;
|
||||||
|
*)
|
||||||
|
ln --symbolic "$venv_dir" "$pyenv_prefix_path";;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# output
|
# output
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user