user may specify NODE_VER

This commit is contained in:
AJ ONeal 2015-01-08 11:37:33 -07:00
parent 2d1a3a697d
commit 5fb6c3488e
1 changed files with 6 additions and 1 deletions

View File

@ -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=""