Update setup-node-mavericks.bash

This commit is contained in:
AJ ONeal 2017-05-15 21:56:56 -06:00
parent 30627ef933
commit 216bcb8796
1 changed files with 3 additions and 3 deletions

View File

@ -8,10 +8,10 @@ if [ -z "${PREFIX-}" ]; then
PREFIX=""
fi
if [ -n "$NODE_PATH" ]; then
node_install_path=$(dirname $(dirname $NODE_PATH))
else
if [ -z "${NODE_PATH-}" ]; then
node_install_path=$PREFIX/usr/local
else
node_install_path=$(dirname $(dirname $NODE_PATH))
fi
NODEJS_VER=${1}