mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 04:11:14 +00:00
Add check for clean git to bump-version/release script
This commit is contained in:
parent
4bb6474ccd
commit
45312bc80a
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
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
|
||||
OLD_VERSION_NAME=$(grep "versionName" "app/build.gradle" | awk '{print $2}')
|
||||
if [[ -z ${NEW_VERSION_NAME} ]]
|
||||
|
|
Loading…
Reference in a new issue