From e8993985bdf272d772fedfcbd2ee059fd6a3c300 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 8 Jan 2015 12:00:38 -0700 Subject: [PATCH] Update setup-ubuntu.bash --- setup-ubuntu.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-ubuntu.bash b/setup-ubuntu.bash index 6bab698..695685e 100644 --- a/setup-ubuntu.bash +++ b/setup-ubuntu.bash @@ -25,6 +25,8 @@ fi # node if [ -n "$(which node | grep node 2>/dev/null)" ]; then + NODE_VER="" + if [ "${NODE_VER}" == "$(node -v 2>/dev/null)" ]; then echo node ${NODE_VER} already installed else @@ -34,7 +36,6 @@ if [ -n "$(which node | grep node 2>/dev/null)" ]; then echo "" echo "to reinstall please first run: rm $(which node)" echo "" - NODE_VER="" fi fi