summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJohn McLear <john@mclear.co.uk>2016-03-27 13:31:00 +0800
committerJohn McLear <john@mclear.co.uk>2016-03-27 13:31:00 +0800
commite1999d826cd549bd2126040bf68a944413238aa2 (patch)
tree7c854bb885bdef0761366a0fcc46ca516415cc81 /bin
parent6f2e155668fe206c58eb2ca0f364186adfb175fa (diff)
downloadetherpad-lite-e1999d826cd549bd2126040bf68a944413238aa2.zip
allow greater than or equal to v 4
Diffstat (limited to 'bin')
-rwxr-xr-xbin/installDeps.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/installDeps.sh b/bin/installDeps.sh
index 2e1d465d..0b41c559 100755
--- a/bin/installDeps.sh
+++ b/bin/installDeps.sh
@@ -48,7 +48,8 @@ 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"}
-if [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ] && [ ! $NODE_V_MAIN -gt 4 ]; then
+echo $NODE_V_MAIN
+if [ ! $NODE_V_MINOR = "v0.10" ] && [ ! $NODE_V_MINOR = "v0.11" ] && [ ! $NODE_V_MINOR = "v0.12" ] && [ ! $NODE_V_MAIN -ge 4 ]; then
echo "You're running a wrong version of node. You're using $NODE_VERSION, we need node v0.10.x or higher" >&2
exit 1
fi