Skip to content

Commit ac85e06

Browse files
authored
do not fail if install folder is not in PATH (#410)
1 parent 00eee5c commit ac85e06

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: install.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ testVersion() {
172172
set +e
173173
CLI="$(which $PROJECT_NAME)"
174174
if [ "$?" = "1" ]; then
175-
fail "$PROJECT_NAME not found. Did you add "$LBINDIR" to your "'$PATH?'
176-
fi
177-
if [ $CLI != "$LBINDIR/$PROJECT_NAME" ]; then
175+
echo "$PROJECT_NAME not found. You might want to add "$LBINDIR" to your "'$PATH'
176+
elif [ $CLI != "$LBINDIR/$PROJECT_NAME" ]; then
178177
fail "An existing $PROJECT_NAME was found at $CLI. Please prepend "$LBINDIR" to your "'$PATH'" or remove the existing one."
179178
fi
179+
180180
set -e
181-
CLI_VERSION=$($PROJECT_NAME version)
182-
echo "$CLI_VERSION installed successfully"
181+
CLI_VERSION=$($LBINDIR/$PROJECT_NAME version)
182+
echo "$CLI_VERSION installed successfully in $LBINDIR"
183183
}
184184

185185

0 commit comments

Comments
 (0)