From 216aa9b420b6499ddebe50e7f3b02551be3f12ba Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 3 Nov 2017 15:21:25 -0600 Subject: [PATCH] more helpful path output --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ee2dccb..0e44e04 100644 --- a/install.sh +++ b/install.sh @@ -254,13 +254,15 @@ if [ -z "${NODE_PATH-}" ]; then if [ -n "$(type -p node | grep node 2>/dev/null)" ]; then # /usr/local/bin/node => /usr/local node_install_path="$(dirname $(dirname $(type -p node)))" + echo "NODE_PATH is not set. Using existing node install path: '$node_install_path'" else node_install_path=$PREFIX/usr/local + echo "NODE_PATH is not set. Using default install path '$node_install_path'" fi else node_install_path=$(dirname $(dirname $NODE_PATH)) + echo "NODE_PATH is '$NODE_PATH', so install path is '$node_install_path'" fi -echo "Install path is $node_install_path" if [ -e "$node_install_path/bin/node" ]; then # node of some version is already installed if [ "${NODEJS_VER}" == "$($node_install_path/bin/node -v 2>/dev/null)" ]; then