From 933ceba356ca5bfc2ac6535f8facbdae74db4d94 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 15 May 2017 21:57:29 -0600 Subject: [PATCH] Update setup-min.sh --- setup-min.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup-min.sh b/setup-min.sh index 1ce4c78..9282c73 100644 --- a/setup-min.sh +++ b/setup-min.sh @@ -20,10 +20,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_NAME="node"