Compare commits

..

2 Commits

Author SHA1 Message Date
piair
0685a42922 making scripts executables 2024-04-26 15:37:32 +02:00
piair
6729703827 auto update hooks 2024-04-26 15:35:37 +02:00
3 changed files with 14 additions and 1 deletions

12
hooks/bump.sh Executable file
View 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
View File

@ -0,0 +1 @@
sh hooks/bump.sh

View File

@ -1 +1 @@
v6.8.48
v6.8.49