From bbe848b5a6f63013ef380701b6553c1a83c9a101 Mon Sep 17 00:00:00 2001 From: teldra Date: Fri, 8 Apr 2022 18:42:39 +0200 Subject: [PATCH] small fixes --- new.sh | 2 ++ push.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/new.sh b/new.sh index 53f8c9d9..f0ee9fdd 100755 --- a/new.sh +++ b/new.sh @@ -18,11 +18,13 @@ echo "---" >> "content/news/${date}-${title_}/index.de.md" git add "content/news/${date}-${title_}/" git commit -m "${date}-${title_}" + for i in vim nano gedit kate; do if command -v $i > /dev/null; then editor="$i" fi done + echo "" echo "" echo "Schreibe nun mit einem einfachen Editor deinen Artikel." diff --git a/push.sh b/push.sh index b3cbd9b4..67aa3ab8 100755 --- a/push.sh +++ b/push.sh @@ -2,8 +2,8 @@ git add content/news git commit --amend --no-edit target="origin" -if [ "$1" = "main" ]; then +if [ "$1" = "upstream" ]; then target=upstream fi -#git push ${target} +git push ${target}