Check EDITOR, fixed typo
This commit is contained in:
parent
63db782703
commit
6d9be433eb
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue