diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh index 07807162c..9ddd35a29 100644 --- a/scripts/pre-commit.sh +++ b/scripts/pre-commit.sh @@ -4,7 +4,7 @@ check_current_branch() { echo "\n๐Ÿš€ Checking the current git branch..." CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) - if [ "$CURRENT_BRANCH" = "main" ] || [ "$CURRENT_BRANCH" = "develop" ]; then + if [ "$CURRENT_BRANCH" = "master" ] || [ "$CURRENT_BRANCH" = "dev" ]; then echo "๐Ÿ›‘ Hold it right there! Committing directly to the '$CURRENT_BRANCH' branch? That's a big no-no!" echo "๐Ÿšซ Direct commits to '$CURRENT_BRANCH' are like trying to use a wrench to write codeโ€”doesn't work! ๐Ÿ˜œ" echo "\nABORTING COMMIT: You must navigate to a feature branch or create a new one to save the day! ๐Ÿฆธโ€โ™‚๏ธ๐Ÿฆธโ€โ™€๏ธ\n" diff --git a/scripts/pre-push.sh b/scripts/pre-push.sh index 84655f5a5..d2c0f6779 100644 --- a/scripts/pre-push.sh +++ b/scripts/pre-push.sh @@ -4,7 +4,7 @@ check_current_branch() { printf "\n๐Ÿš€ Checking the current git branch..." CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) - if [ "$CURRENT_BRANCH" = "main" ] || [ "$CURRENT_BRANCH" = "develop" ]; then + if [ "$CURRENT_BRANCH" = "master" ] || [ "$CURRENT_BRANCH" = "dev" ]; then echo "๐Ÿ›‘ Hold it right there! Committing directly to the '$CURRENT_BRANCH' branch? That's a big no-no!" echo "๐Ÿšซ Direct commits to '$CURRENT_BRANCH' are like trying to use a wrench to write codeโ€”doesn't work! ๐Ÿ˜œ" printf "\nABORTING COMMIT: You must navigate to a feature branch or create a new one to save the day! ๐Ÿฆธโ€โ™‚๏ธ๐Ÿฆธโ€โ™€๏ธ\n"