Check EDITOR, fixed typo

This commit is contained in:
Teo-CD 2020-06-01 00:31:13 +02:00
parent 63db782703
commit 6d9be433eb

View file

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