operations: Expect 'main' as the default branch name.
This commit is contained in:
parent
b17520946e
commit
8cbdad0e21
@ -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}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user