summaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-04 16:00:34 +0000
committerng0 <ng0@n0.is>2019-10-04 16:00:34 +0000
commit63f01ec1ac63874de876fda09ff3d17b86a36cde (patch)
tree6fb5b9ca8126662fb3d2f5f45a17445101aeeb5c /configure.py
parent5059125bfe5a60aae4e6da79d61d086b4e2e2fce (diff)
downloadbuild-common-63f01ec1ac63874de876fda09ff3d17b86a36cde.tar.gz
build-common-63f01ec1ac63874de876fda09ff3d17b86a36cde.tar.bz2
build-common-63f01ec1ac63874de876fda09ff3d17b86a36cde.zip
fix node version check.
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 8fc6e04..a7a2be9 100644
--- a/configure.py
+++ b/configure.py
@@ -47,7 +47,7 @@ def _tool_node():
if _existence('node') is None:
sys.exit('Error: node executable not found.\nIf you are using Linux, Ubuntu or Debian, try installing the\nnode-legacy package or symlink node to nodejs.')
else:
- if subprocess.getstatusoutput("node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'")[1] is '':
+ if subprocess.getstatusoutput("node -p 'process.exit(!(/v([0-9]+)/.exec(process.version)[1] >= 4))'")[1] is not '':
# and exit(1) here?
sys.exit('Your node version is too old, use Node 4.x or newer')
else: