diff options
author | Stefan <mu.stefan@googlemail.com> | 2016-03-20 15:19:34 +0100 |
---|---|---|
committer | Stefan <mu.stefan@googlemail.com> | 2016-03-20 15:19:34 +0100 |
commit | 18d583d92d87827b93cd0afa84ce212cd179672c (patch) | |
tree | 0f0feab5a6ed47e3e315ce76cf61bd9d361fddb3 /bin | |
parent | 175c29ff66a043dcc4acfb0d9dce03b73d13e74b (diff) | |
download | etherpad-lite-18d583d92d87827b93cd0afa84ce212cd179672c.zip |
Check for node version 4 or higher and not special versions
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/installDeps.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/installDeps.sh b/bin/installDeps.sh index df6ea9fb..04aa0e53 100755 --- a/bin/installDeps.sh +++ b/bin/installDeps.sh @@ -47,11 +47,12 @@ fi NODE_VERSION=$(node --version) NODE_V_MINOR=$(echo $NODE_VERSION | cut -d "." -f 1-2) NODE_V_MAIN=$(echo $NODE_VERSION | cut -d "." -f 1) +NODE_V_MAIN=${NODE_V_MAIN#"v"} #iojs version checking added if hash iojs 2>/dev/null; then IOJS_VERSION=$(iojs --version) fi -if [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ] && [ ! $NODE_V_MAIN = "v4" ] && [ ! $NODE_V_MAIN = "v5" ]; then +if [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ] && [ ! $NODE_V_MAIN -gt 4 ]; then if [ ! $IOJS_VERSION ]; then echo "You're running a wrong version of node, or io.js is not installed. You're using $NODE_VERSION, we need node v0.10.x or higher" >&2 exit 1 |