small fixes

This commit is contained in:
teldra 2022-04-08 18:42:39 +02:00
parent 3a5cb33d5c
commit bbe848b5a6
2 changed files with 4 additions and 2 deletions

2
new.sh
View File

@ -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."

View File

@ -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}