1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 07:41:17 +00:00

Add check for clean git to bump-version/release script

This commit is contained in:
Simon Frei 2023-12-26 11:44:54 +01:00
parent 4bb6474ccd
commit 45312bc80a

View file

@ -2,6 +2,11 @@
set -e set -e
if ! git diff-index --exit-code --quiet HEAD; then
echo "Bumping version aka cutting a release must happen on a clean git workspace"
exit 1
fi
NEW_VERSION_NAME=$1 NEW_VERSION_NAME=$1
OLD_VERSION_NAME=$(grep "versionName" "app/build.gradle" | awk '{print $2}') OLD_VERSION_NAME=$(grep "versionName" "app/build.gradle" | awk '{print $2}')
if [[ -z ${NEW_VERSION_NAME} ]] if [[ -z ${NEW_VERSION_NAME} ]]