Better error message for vim. Close #112
This commit is contained in:
parent
5e70713e85
commit
2f598c14b8
1 changed files with 1 additions and 1 deletions
2
bb.sh
2
bb.sh
|
@ -1110,7 +1110,7 @@ do_main() {
|
||||||
|
|
||||||
# Check for $EDITOR
|
# Check for $EDITOR
|
||||||
[[ -z $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
|
# Check for validity of argument
|
||||||
[[ $1 != "reset" && $1 != "post" && $1 != "rebuild" && $1 != "list" && $1 != "edit" && $1 != "delete" && $1 != "tags" ]] &&
|
[[ $1 != "reset" && $1 != "post" && $1 != "rebuild" && $1 != "list" && $1 != "edit" && $1 != "delete" && $1 != "tags" ]] &&
|
||||||
|
|
Loading…
Reference in a new issue