commit ab93aa742170682196711012f3e4b85594ba77d3
parent e954f90cd4db3201c0e00c89aaeffde28ff4c9a1
Author: pyratebeard <root@pyratebeard.net>
Date: Thu, 13 Oct 2022 15:56:14 +0100
quiet checkout. checkout main branch before creating new one
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/draft b/scripts/draft
@@ -6,8 +6,8 @@ POST="entry/${TITLE}.md"
# checkout the correct branch
git branch | grep ${TITLE} && \
- git checkout ${TITLE} || \
- git checkout -b ${TITLE}
+ git checkout -q ${TITLE} || \
+ $(git checkout -q main && git checkout -q -b ${TITLE})
# if post file does not exist yet touch it
[ -f "${POST}" ] || touch "${POST}"