From 5fb6c3488ee0ab55632d67d2382620e3ecc99020 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 8 Jan 2015 11:37:33 -0700 Subject: [PATCH] user may specify NODE_VER --- setup.bash | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.bash b/setup.bash index 35f36f5..bdd226e 100644 --- a/setup.bash +++ b/setup.bash @@ -4,7 +4,12 @@ # wget -nv https://example.com/setup.bash -O - | bash BASE_URL="https://raw.githubusercontent.com/coolaj86/node-install-script/master" -NODE_VER="v0.11.14" +if [ -f "/tmp/NODE_VER" ]; then + NODE_VER=$(cat /tmp/NODE_VER | grep v) +fi +if [ -z "$NODE_VER" ]; then + NODE_VER="v0.11.14" +fi OS="unsupported" ARCH=""