Merge "Fix and make PHPDoc tags in FileBackend more specific"
[lhc/web/wiklou.git] / maintenance / resources / update-oojs.sh
index d9e6fb9..1d5c2b1 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env bash
 
+# This script generates a commit that updates our copy of OOjs
+
 if [ -n "$2" ]
 then
        # Too many parameters
@@ -25,7 +27,7 @@ else
        npm install oojs || exit 1
 fi
 
-OOJS_VERSION=$(node -e 'console.log(JSON.parse(require("fs").readFileSync("./node_modules/oojs/package.json")).version);')
+OOJS_VERSION=$(node -e 'console.log(require("./node_modules/oojs/package.json").version);')
 if [ "$OOJS_VERSION" == "" ]
 then
        echo 'Could not find OOjs version'