From 4d82c4d9e83560a0da84f79d3961889d68dae360 Mon Sep 17 00:00:00 2001 From: Giovanni Pellerano Date: Tue, 29 Oct 2024 12:12:13 +0100 Subject: [PATCH] Update bump_version.sh script after renaming npm shrinkwrap --- scripts/bump_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index 3930f71ddc..c8fe1e1b8c 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -13,7 +13,7 @@ if [[ "$1" != "" ]]; then sed -i "s/\"version\":.*/\"version\": \"$1\",/g" "$ROOTDIR"/client/package.json - awk -v ver="$1" 'BEGIN{cnt=0} /"version":/ && cnt<2 {sub(/"version": "[^"]*"/, "\"version\": \"" ver "\""); cnt++} 1' "$ROOTDIR/client/package-lock.json" > tmp && mv tmp "$ROOTDIR/client/npm-shrinkwrap.json" + awk -v ver="$1" 'BEGIN{cnt=0} /"version":/ && cnt<2 {sub(/"version": "[^"]*"/, "\"version\": \"" ver "\""); cnt++} 1' "$ROOTDIR/client/package-lock.json" > tmp && mv tmp "$ROOTDIR/client/package-lock.json" sed -i "s/^releaseDate:.*/releaseDate: '$(date +'%Y-%m-%d')'/g" "$ROOTDIR"/publiccode.yml