From 4976ba598a0d80e117cf8ca9fbfbbd96b1a89645 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 3 Nov 2016 04:15:29 +0100 Subject: check for node version (correctly this time) --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') 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 -- cgit v1.2.3