mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 23:30:48 +00:00
Only mv bin to bin.orig the first time, otherwise the mv will fail
This commit is contained in:
parent
79fca42c35
commit
36647a66de
1 changed files with 3 additions and 1 deletions
|
@ -1470,7 +1470,9 @@ build_package_symlink_version_suffix() {
|
|||
if [[ "$PYTHON_CONFIGURE_OPTS" == *"--enable-framework"* ]]; then
|
||||
if [ -e "${PREFIX_PATH}/bin" ]; then
|
||||
# Always create `bin` as symlink to framework path if the version was built with `--enable-frameowrk` (#590)
|
||||
mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig"
|
||||
if [ ! -e "${PREFIX_PATH}/bin.orig" ]; then
|
||||
mv -f "${PREFIX_PATH}/bin" "${PREFIX_PATH}/bin.orig"
|
||||
fi
|
||||
fi
|
||||
# Only symlinks are installed in ${PREFIX_PATH}/bin
|
||||
ln -fs "${PREFIX_PATH}/Python.framework/Versions/Current/bin" "${PREFIX_PATH}/bin"
|
||||
|
|
Loading…
Reference in a new issue