commit 0058246aef6b23f215bf8465f2d1cbc997035f47 parent 212881ac359935b2eebc52e605ee8634183f4530 Author: pyratebeard <root@pyratebeard.net> Date: Sat, 5 Nov 2022 23:43:05 +0000 rnd.lit.rec Diffstat:
M | scripts/draft | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/scripts/draft b/scripts/draft @@ -4,15 +4,16 @@ TITLE=$1 RND=$2 -if [ "$RND" = "mov" ] ; then - POST="entry/rnd.mov.rec:_${TITLE}.md" +if [ "$RND" = "mov" ] || [ "$RND" = "lit" ] ; then + POST="entry/rnd.${RND}.rec:_${TITLE}.md" else POST="entry/${TITLE}.md" fi # checkout the correct branch -if [ "$RND" = "mov" ] ; then - git checkout -q rnd.mov.rec +if [ "$RND" = "mov" ] || [ "$RND" = "lit" ] ; then + git checkout -q rnd.${RND}.rec + git merge main else git branch | grep ${TITLE} && \ git checkout -q ${TITLE} || \