fix (install): restore exit after _bash-it_show_usage

pull/2192/head
Gurkirat Singh 2023-02-13 09:54:29 +05:30
parent 24a0ced456
commit e724afaf32
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,6 @@ function _bash-it_show_usage() {
echo "--no-modify-config (-n): Do not modify existing config file" echo "--no-modify-config (-n): Do not modify existing config file"
echo "--append-to-config (-a): Keep existing config file and append bash-it templates at the end" echo "--append-to-config (-a): Keep existing config file and append bash-it templates at the end"
echo "--overwrite-backup (-f): Overwrite existing backup" echo "--overwrite-backup (-f): Overwrite existing backup"
exit 0
} }
# enable a thing # enable a thing
@ -158,6 +157,7 @@ while getopts "hsinaf" opt; do
case "$opt" in case "$opt" in
"h") "h")
_bash-it_show_usage _bash-it_show_usage
exit 0
;; ;;
"s") silent=true ;; "s") silent=true ;;
"i") interactive=true ;; "i") interactive=true ;;
@ -166,6 +166,7 @@ while getopts "hsinaf" opt; do
"f") overwrite_backup=true ;; "f") overwrite_backup=true ;;
"?") "?")
_bash-it_show_usage >&2 _bash-it_show_usage >&2
exit 1
;; ;;
esac esac
done done