From 4d2c8883def095264a67caffe66ea0cafd20f15d Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 13 Dec 2019 17:21:24 +0000 Subject: [PATCH] Use jq --- scripts/mkrepo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkrepo.sh b/scripts/mkrepo.sh index 08078c9..599a126 100755 --- a/scripts/mkrepo.sh +++ b/scripts/mkrepo.sh @@ -11,7 +11,7 @@ confdir=$1 set -ex -ver=`node -e "require('fs'); console.log(JSON.parse(fs.readFileSync('package.json')).version)"` +ver=`jq -r .version package.json` distdir=$PWD/dist confdir=$PWD/$confdir