Skip to content

Do not fail if install folder is not in PATH #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}


Expand Down