Check EDITOR, fixed typo

This commit is contained in:
trotFunky 2020-06-01 00:31:13 +02:00
parent 0da4b2f805
commit a674f18e80

View file

@ -39,6 +39,7 @@ EDITOR=${EDITOR:-$(update-alternatives --list editor | head -n1)}
# If not present set it to vi
EDITOR=${EDITOR:-vi}
# Open the newly created file, openfully in the chosen editor
$EDITOR content/articles/"$filename"
# Open the newly created file, hopefully in the chosen editor
if [ -n "$EDITOR" ]; then
$EDITOR content/articles/"$filename"
fi