Merge pull request #5 from djames1/editor-fix

Added check just in case $EDITOR environment variable is not set
This commit is contained in:
Luke Smith 2018-09-08 10:57:26 -04:00 committed by GitHub
commit 565f507b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() { \