Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to get rid of NODE_HOME on unix systems
- Loading branch information
Denis Wolf
committed
Jan 7, 2013
1 parent
a5404d3
commit f8468e5
Showing
1 changed file
with
7 additions
and
14 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
if [ -s "${NODE_HOME}/node" ]; then | ||
echo "NodeJs found. Good for you! Go tell Yoav you've managed to install it" | ||
command_exists () { | ||
type "$1" &> /dev/null ; | ||
} | ||
if command_exists node ; then | ||
echo "Node.js was found. Happy Happy Joy Joy." | ||
else | ||
echo "***********************************************************************************************" | ||
echo "* *" | ||
echo "* --- FATAL!!! --- *" | ||
echo "* *" | ||
echo "* NODE_HOME is not defined or does not point to NodeJs base directory *" | ||
echo "* NodeJs must be installed in the build environment (http://nodejs.org/download/) *" | ||
echo "* And NODE_JOME should be set to NodeJs's base folder *" | ||
echo "* See Yoav Avrahami +972-54-2344146 for more details *" | ||
echo "* *" | ||
echo "***********************************************************************************************" | ||
exit 1 | ||
echo "Node.js is not installed or is not in your PATH. Please, fix it before continue." | ||
exit 1 | ||
fi | ||
|