forked from coolaj86/node-installer.sh
Update setup-node-ubuntu.bash
This commit is contained in:
parent
216bcb8796
commit
5a1edbd2e4
|
@ -8,10 +8,10 @@ if [ -z "${PREFIX-}" ]; then
|
||||||
PREFIX=""
|
PREFIX=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$NODE_PATH" ]; then
|
if [ -z "${NODE_PATH-}" ]; then
|
||||||
node_install_path=$(dirname $(dirname $NODE_PATH))
|
|
||||||
else
|
|
||||||
node_install_path=$PREFIX/usr/local
|
node_install_path=$PREFIX/usr/local
|
||||||
|
else
|
||||||
|
node_install_path=$(dirname $(dirname $NODE_PATH))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
NODEJS_VER=${1}
|
NODEJS_VER=${1}
|
||||||
|
|
Loading…
Reference in New Issue