diff --git a/operations/update-version.sh b/operations/update-version.sh index 4e95a39..551d4a5 100755 --- a/operations/update-version.sh +++ b/operations/update-version.sh @@ -10,7 +10,7 @@ rootDir=$(git rev-parse --show-toplevel) cd "$rootDir" currentBranch=$(git rev-parse --abbrev-ref HEAD) -if [ "$currentBranch" != "develop" ]; then +if [ "$currentBranch" != "main" ]; then printf "You are currently on the '%s' branch. Is this intended (yes/no)? " "$currentBranch" read -r confirmation @@ -60,4 +60,3 @@ git commit -m "Update package version to ${newVersion}" printf ">> Tagging commit.\n" printf "git tag -m \"Version %s\" \"%s\"\n" "$newVersion" "$newVersion" git tag -m "Version ${newVersion}" "${newVersion}" -