From 9567fb76384946d2c6df1cc37425d01bd58d7af8 Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Tue, 17 Sep 2019 10:26:12 +0200 Subject: [PATCH] do not fail if install folder is not in PATH --- install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 0e6460cea14..1706f1dace4 100755 --- a/install.sh +++ b/install.sh @@ -172,14 +172,14 @@ testVersion() { set +e CLI="$(which $PROJECT_NAME)" if [ "$?" = "1" ]; then - fail "$PROJECT_NAME not found. Did you add "$LBINDIR" to your "'$PATH?' - fi - if [ $CLI != "$LBINDIR/$PROJECT_NAME" ]; then + echo "$PROJECT_NAME not found. You might want to add "$LBINDIR" to your "'$PATH' + elif [ $CLI != "$LBINDIR/$PROJECT_NAME" ]; then fail "An existing $PROJECT_NAME was found at $CLI. Please prepend "$LBINDIR" to your "'$PATH'" or remove the existing one." fi + set -e - CLI_VERSION=$($PROJECT_NAME version) - echo "$CLI_VERSION installed successfully" + CLI_VERSION=$($LBINDIR/$PROJECT_NAME version) + echo "$CLI_VERSION installed successfully in $LBINDIR" }