From c07c060b7d58a86513695ab6f549ccb19926499e Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 16 Aug 2017 10:22:09 +0100 Subject: [PATCH] Fix jq command to use [] instead of ."matrix-js-sdk" Because otherwise there might be a syntax error looking like ``` error: syntax error, unexpected QQSTRING_START, expecting IDENT .dependencies."matrix-js-sdk" ``` --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 8ae307f7..13675018 100755 --- a/release.sh +++ b/release.sh @@ -11,7 +11,7 @@ cd `dirname $0` for i in matrix-js-sdk matrix-react-sdk do - depver=`cat package.json | jq -r .dependencies.\"$i\"` + depver=`cat package.json | jq -r .dependencies[\"$i\"]` latestver=`npm show $i version` if [ "$depver" != "$latestver" ] then