mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
Update increment_build_number.sh
This commit is contained in:
parent
5e16dca13a
commit
a0d09abcc1
1 changed files with 1 additions and 0 deletions
1
.github/scripts/increment_build_number.sh
vendored
1
.github/scripts/increment_build_number.sh
vendored
|
@ -1,6 +1,7 @@
|
|||
export newVersion="$1"
|
||||
|
||||
if [[ -n "$newVersion" ]]; then
|
||||
#https://stackoverflow.com/a/30214769/13167574
|
||||
perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.$ENV{'newVersion'}.$3.($4+1)/e' pubspec.yaml
|
||||
else
|
||||
echo "argument error"
|
||||
|
|
Loading…
Reference in a new issue