Skip to content
Browse files

Issue 106 108: which command breaks zsh in init snippet.

  • Loading branch information...
1 parent b8c279f commit 9c3902e4c33fd95a45c6b9113c9410e69f479278 @marc0der marc0der committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/resources/scripts/install.sh
View
2 src/main/resources/scripts/install.sh
@@ -37,7 +37,7 @@ gvm_platform=$(uname -o)
gvm_init_snippet=$( cat << EOF
#THIS MUST BE AT THE END OF THE FILE FOR GVM TO WORK!!!
-[[ -s "${GVM_DIR}/bin/gvm-init.sh" && ! \$(which gvm-init.sh) ]] && source "${GVM_DIR}/bin/gvm-init.sh"
+[[ -s "${GVM_DIR}/bin/gvm-init.sh" && -z \$(which gvm-init.sh | grep '/gvm-init.sh') ]] && source "${GVM_DIR}/bin/gvm-init.sh"
EOF
)

0 comments on commit 9c3902e

Please sign in to comment.
Something went wrong with that request. Please try again.