Compare commits
2 Commits
304a222de1
...
0685a42922
Author | SHA1 | Date | |
---|---|---|---|
|
0685a42922 | ||
|
6729703827 |
12
hooks/bump.sh
Executable file
12
hooks/bump.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
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)
|
1
hooks/pre-commit
Executable file
1
hooks/pre-commit
Executable file
@ -0,0 +1 @@
|
|||||||
|
sh hooks/bump.sh
|
Loading…
Reference in New Issue
Block a user