X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=install.sh;h=cf290b464a463f0e1b462ff16c170bccad801504;hb=e9a6841b3ee328e0ca2c160629a939129548bb18;hp=e5ded0bfa2c4824060a419203f9a4b635060b2f7;hpb=492914df02fde73c43ed551f2401cb0d3ce34861;p=ax-zsh.git diff --git a/install.sh b/install.sh index e5ded0b..cf290b4 100755 --- a/install.sh +++ b/install.sh @@ -38,12 +38,10 @@ export AXZSH S=$(dirname "$0") -if [ "$S" = "$AXZSH" -o "$PWD" = "$AXZSH" ]; then +if [ "$S" = "$AXZSH" ] || [ "$PWD" = "$AXZSH" ] || [ -L "$AXZSH" ]; then ax_msg 1 "Initializing \"$AXZSH\":" else ax_msg 1 "Install AX-ZSH into \"$AXZSH\":" - - [ -L "$AXZSH" ] && rm -f "$AXZSH" mkdir -p "$AXZSH" || abort ax_msg - "Copying binaries and scripts ..."