Unverified Commit ac85e06f authored by Massimiliano Pippi's avatar Massimiliano Pippi Committed by GitHub

do not fail if install folder is not in PATH (#410)

parent 00eee5c2
...@@ -172,14 +172,14 @@ testVersion() { ...@@ -172,14 +172,14 @@ testVersion() {
set +e set +e
CLI="$(which $PROJECT_NAME)" CLI="$(which $PROJECT_NAME)"
if [ "$?" = "1" ]; then if [ "$?" = "1" ]; then
fail "$PROJECT_NAME not found. Did you add "$LBINDIR" to your "'$PATH?' echo "$PROJECT_NAME not found. You might want to add "$LBINDIR" to your "'$PATH'
fi elif [ $CLI != "$LBINDIR/$PROJECT_NAME" ]; then
if [ $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." fail "An existing $PROJECT_NAME was found at $CLI. Please prepend "$LBINDIR" to your "'$PATH'" or remove the existing one."
fi fi
set -e set -e
CLI_VERSION=$($PROJECT_NAME version) CLI_VERSION=$($LBINDIR/$PROJECT_NAME version)
echo "$CLI_VERSION installed successfully" echo "$CLI_VERSION installed successfully in $LBINDIR"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment