Added check just in case $EDITOR environment variable is not set

This commit is contained in:
Daniel James 2018-09-08 08:01:31 -04:00
parent 58d485eda6
commit 55972f2c41
1 changed files with 5 additions and 0 deletions

5
lb
View File

@ -11,6 +11,11 @@ dir=$(pwd)
draftdir="$dir"/blog/.drafts
blogdir="$dir"/blog
# Set vi if $EDITOR not set
if [ -z $EDITOR ];
then EDITOR="vi";
fi;
# See other variables defined later, such as `header` and `webdate` for more customizability.
getHelp() { \