mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-10-18 14:20:40 +00:00
8 lines
197 B
Bash
8 lines
197 B
Bash
|
export newVersion="$1"
|
||
|
|
||
|
if [[ -n "$newVersion" ]]; then
|
||
|
perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.$ENV{'newVersion'}.$3.($4+1)/e' pubspec.yaml
|
||
|
else
|
||
|
echo "argument error"
|
||
|
fi
|