summaryrefslogtreecommitdiff
path: root/maintenance/resources/update-oojs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/resources/update-oojs.sh')
-rw-r--r--maintenance/resources/update-oojs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/maintenance/resources/update-oojs.sh b/maintenance/resources/update-oojs.sh
index d9e6fb9d..1d5c2b17 100644
--- a/maintenance/resources/update-oojs.sh
+++ b/maintenance/resources/update-oojs.sh
@@ -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'