Better error message for $EDITOR. Close #112

This commit is contained in:
Carlos Fenollosa 2016-10-24 11:41:30 +02:00
parent 36d79b5cdd
commit 6222672817

2
bb.sh
View file

@ -1151,7 +1151,7 @@ do_main() {
# Check for $EDITOR
[[ -z $EDITOR ]] &&
echo "Please set your \$EDITOR environment variable" && exit
echo "Please set your \$EDITOR environment variable. For example, to use nano, add the line 'export EDITOR=nano' to your \$HOME/.bashrc file" && exit
# Check for validity of argument
[[ $1 != "reset" && $1 != "post" && $1 != "rebuild" && $1 != "list" && $1 != "edit" && $1 != "delete" && $1 != "tags" ]] &&