mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-18 09:50:38 +08:00
13 lines
391 B
Bash
Executable File
13 lines
391 B
Bash
Executable File
#!/bin/bash
|
|
STAGE_FILES=$(git diff --cached --name-only --diff-filter=ACM -- 'makespec/BUILDVERSION')
|
|
#echo $STAGE_FILES
|
|
if test ${#STAGE_FILES} -gt 0
|
|
then
|
|
echo 'BUILDVERSION already changed, not touching'
|
|
else
|
|
echo 'Increasing BUILDVERSION'
|
|
expr $(cat ./makespec/BUILDVERSION) + 1 > ./makespec/BUILDVERSION
|
|
cat ./makespec/BUILDVERSION
|
|
git add ./makespec/BUILDVERSION
|
|
fi
|