commit 4976ba598a0d80e117cf8ca9fbfbbd96b1a89645
parent 2f57643e2ec04af0e8be8a5c2b4110b544946cfc
Author: Florian Dold <florian.dold@gmail.com>
Date: Thu, 3 Nov 2016 04:15:29 +0100
check for node version (correctly this time)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
@@ -11,8 +11,9 @@ if [ ! "$?" -eq 0 ]; then
fi
echo "Using node ${node_version}"
-if ! node -p 'process.exit(!/v([0-9]+)/.exec(process.version)[1] >= 4)'; then
+if ! node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'; then
echo 'Your node version is too old, use something >v4.x.x'
+ exit 1
fi
if ! npm --version >/dev/null; then