Skip to content

Commit 550b592

Browse files
committed
Minor bug fix if the /Applications folder is not writeable
1 parent 546ab0b commit 550b592

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/conda_recipe/psyplot-gui/osx-post.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ elif [[ -e $HOME/Applications/Psyplot.app ]]; then
2727
fi
2828
fi
2929
# otherwise create a link
30-
ln -s -f $PREFIX/Psyplot.app /Applications/ >/dev/null 2>&1
31-
if (( $? )); then
30+
FAILED=0
31+
ln -s -f $PREFIX/Psyplot.app /Applications/ >/dev/null 2>&1 || FAILED=1
32+
if (( $FAILED )); then
3233
mkdir -p $HOME/Applications
3334
ln -s -f $PREFIX/Psyplot.app $HOME/Applications/ || exit 0
3435
fi

0 commit comments

Comments
 (0)