12 lines
281 B
Bash
12 lines
281 B
Bash
file=version
|
|
|
|
if [ "$(git diff HEAD version | wc -w)" -eq 0 ]
|
|
then
|
|
echo 'updating minor version'
|
|
new_path=$(cat $file | awk -F . '{print $1"."$2"."$3+1 }')
|
|
echo $new_path > $file
|
|
git add version
|
|
else
|
|
echo 'Version have been updated manually'
|
|
fi
|
|
echo Version: $(cat $file) |