From 0915820eb6df6f600561b3b4683642ee7813dc9f Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Sun, 19 Dec 2021 20:40:28 +0000 Subject: [PATCH] Master branch is main now --- bin/build_web_site | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/build_web_site b/bin/build_web_site index 3fc2057..13779a4 100755 --- a/bin/build_web_site +++ b/bin/build_web_site @@ -32,11 +32,11 @@ function check_repository_is_clean { fi } -function check_branch_is_master { +function check_branch_is_main { BRANCH_NAME=$(git branch | grep \* | cut -d ' ' -f2) - if [ $BRANCH_NAME != "master" ] + if [ $BRANCH_NAME != "main" ] then - print_error "Current branch is not master. Aborting." + print_error "Current branch is not main. Aborting." exit 1 fi } @@ -54,7 +54,7 @@ set +o errexit bump_type="${1:-}" check_bump_type_is_defined ${bump_type} -check_branch_is_master +check_branch_is_main check_current_directory_is_root check_repository_is_clean