-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90711ea
commit 457ce2c
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
cd ./app | ||
|
||
which node 2>/dev/null | ||
echo NodeJS status = $? | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
andy-portmen
Author
Owner
|
||
if [ $? -eq 0 ]; then | ||
node -e "process.exit(Number(process.version.substr(1).split('.')[0]) > 5 ? 0 : 1)" | ||
fi | ||
|
This line is breaking this script.
When
node
is not installed,which
returns1
, then, in this line,echo
resets this to0
.In following lines, even if we don't have node, we are trying to execute it.
Remove this line, or assing
$?
to variable.After that, line 10 have similar problem.