Skip to content

Commit

Permalink
Update scripts/bump_version in relation to change of naming of client…
Browse files Browse the repository at this point in the history
… shrinkwrap file
  • Loading branch information
evilaliv3 committed Dec 6, 2024
1 parent 007de58 commit b74ad17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/package-lock.json"
awk -v ver="$1" 'BEGIN{cnt=0} /"version":/ && cnt<2 {sub(/"version": "[^"]*"/, "\"version\": \"" ver "\""); cnt++} 1' "$ROOTDIR/client/npm-shrinkwrap.json" > tmp && mv tmp "$ROOTDIR/client/npm-shrinkwrap.json"

sed -i "s/^releaseDate:.*/releaseDate: '$(date +'%Y-%m-%d')'/g" "$ROOTDIR"/publiccode.yml

Expand Down

0 comments on commit b74ad17

Please sign in to comment.