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}