]> arthur.barton.de Git - ax-zsh.git/commitdiff
install.sh: Use "which" instead of "type"
authorAlexander Barton <alex@barton.de>
Sat, 12 Sep 2015 18:07:15 +0000 (20:07 +0200)
committerAlexander Barton <alex@barton.de>
Sat, 12 Sep 2015 18:07:15 +0000 (20:07 +0200)
"type" isn't POSIX compliant.

install.sh

index 26ec741a64e75f06b52f0128bf06c8ff2aaed3b0..2bc902cb26f19c9ba9b591a3e40896c576220000 100755 (executable)
@@ -70,7 +70,7 @@ done
 
 if [ ! -d "$AXZSH/active_plugins" ]; then
        ax_msg - "Initializing plugin directory \"$AXZSH/active_plugins\" ..."
-       type zsh >/dev/null 2>&1
+       which zsh >/dev/null 2>&1
        if [ $? -eq 0 ]; then
                zsh "$AXZSH/bin/axzshctl" reset-plugins
                exit $?