operations: Expect 'main' as the default branch name.
This commit is contained in:
		@@ -10,7 +10,7 @@ rootDir=$(git rev-parse --show-toplevel)
 | 
				
			|||||||
cd "$rootDir"
 | 
					cd "$rootDir"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
currentBranch=$(git rev-parse --abbrev-ref HEAD)
 | 
					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"
 | 
					  printf "You are currently on the '%s' branch. Is this intended (yes/no)? " "$currentBranch"
 | 
				
			||||||
  read -r confirmation
 | 
					  read -r confirmation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -60,4 +60,3 @@ git commit -m "Update package version to ${newVersion}"
 | 
				
			|||||||
printf ">> Tagging commit.\n"
 | 
					printf ">> Tagging commit.\n"
 | 
				
			||||||
printf "git tag -m \"Version %s\" \"%s\"\n" "$newVersion" "$newVersion"
 | 
					printf "git tag -m \"Version %s\" \"%s\"\n" "$newVersion" "$newVersion"
 | 
				
			||||||
git tag -m "Version ${newVersion}" "${newVersion}"
 | 
					git tag -m "Version ${newVersion}" "${newVersion}"
 | 
				
			||||||
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user