From 8cbdad0e21588183f3c9734c44fb90d72996a479 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 12 Aug 2024 13:18:19 -0500 Subject: [PATCH] operations: Expect 'main' as the default branch name. --- operations/update-version.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}" -