From 5a1edbd2e4028173e08500316d59f09fe566dc1a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 15 May 2017 21:57:16 -0600 Subject: [PATCH] Update setup-node-ubuntu.bash --- setup-node-ubuntu.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-node-ubuntu.bash b/setup-node-ubuntu.bash index 45b84b6..7b80775 100644 --- a/setup-node-ubuntu.bash +++ b/setup-node-ubuntu.bash @@ -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}