Wednesday, May 27, 2020

Increment version in manifest.json file

$ cat manifest.json | awk -F'["]' -v OFS='"' '/"version":/ { split($4,a,"."); $4=a[1]"."a[2]"."a[3]+1 };1' > _temp_version_ && mv _temp_version_ manifest.json

manifest.json

{
 "version":1.2.3,
...
}

---->

{
 "version":1.2.4,
...
}

No comments:

Blog Archive