Better error message for $EDITOR. Close #112
This commit is contained in:
parent
36d79b5cdd
commit
6222672817
1 changed files with 1 additions and 1 deletions
2
bb.sh
2
bb.sh
|
@ -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" ]] &&
|
||||
|
|
Loading…
Reference in a new issue