From e724afaf3237378ca6dadcece26cb27439a30e02 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Mon, 13 Feb 2023 09:54:29 +0530 Subject: [PATCH] fix (install): restore exit after _bash-it_show_usage --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 521db6a8..58c25537 100755 --- a/install.sh +++ b/install.sh @@ -12,7 +12,6 @@ function _bash-it_show_usage() { 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 "--overwrite-backup (-f): Overwrite existing backup" - exit 0 } # enable a thing @@ -158,6 +157,7 @@ while getopts "hsinaf" opt; do case "$opt" in "h") _bash-it_show_usage + exit 0 ;; "s") silent=true ;; "i") interactive=true ;; @@ -166,6 +166,7 @@ while getopts "hsinaf" opt; do "f") overwrite_backup=true ;; "?") _bash-it_show_usage >&2 + exit 1 ;; esac done