From 21118ee46e2b61d25236c32ee22a4649d0664921 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 14 Sep 2023 21:46:28 +0200 Subject: [PATCH] feat: print mainbranch to stderr --- script/gitmainbranch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/gitmainbranch b/script/gitmainbranch index f17a5b1..9c62dce 100755 --- a/script/gitmainbranch +++ b/script/gitmainbranch @@ -5,11 +5,15 @@ set -e if git branch -l | grep -q "main"; then + >&2 echo "mainbranch: selected branch main" + sleep 0.5 echo "main" exit 0 fi if git branch -l | grep -q "master"; then + >&2 echo "mainbranch: selected branch master" + sleep 0.5 echo "master" exit 0 fi