]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd-autoinstall
BF did not run anything
[neurodebian.git] / tools / nd-autoinstall
index 66bcdb109ada3b428e41e60cec21fee425c13034..85e2be82769b49d94f8c982634a40dd2b14eba21 100755 (executable)
@@ -180,7 +180,7 @@ if [ $do_install -eq 1 ]; then
        }
 fi
 
-if [ -x $ai_command ]; then
+if which $ai_command > /dev/null 2>&1; then
        # only run if executable
        print_verbose "Running $ai_command"
        $ai_command "$@"