summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-03 04:15:29 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-03 04:15:29 +0100
commit4976ba598a0d80e117cf8ca9fbfbbd96b1a89645 (patch)
treeb5989e670d69dcf77f12cde59eb396a707aa6afc /configure
parent2f57643e2ec04af0e8be8a5c2b4110b544946cfc (diff)
downloadwallet-core-4976ba598a0d80e117cf8ca9fbfbbd96b1a89645.tar.gz
wallet-core-4976ba598a0d80e117cf8ca9fbfbbd96b1a89645.tar.bz2
wallet-core-4976ba598a0d80e117cf8ca9fbfbbd96b1a89645.zip
check for node version (correctly this time)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 18c14097f..76ab94a7a 100755
--- 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