X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fresources%2Fupdate-oojs.sh;h=1d5c2b17096f833490472f37f34c11c6e059e974;hb=3efd6ef5fdd921b522fc3de2aedcad0d028a792a;hp=d9e6fb9d923e8a9371439fc0c1a4050cb4f4fdf9;hpb=b74456fca841445a1c9f356fc8e53551eea14dd4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/resources/update-oojs.sh b/maintenance/resources/update-oojs.sh index d9e6fb9d92..1d5c2b1709 100755 --- 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'