From 28744aee152a7a3d2c74d604bdfe68502186665b Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Wed, 27 Jul 2022 13:02:10 -0700 Subject: [PATCH] Fix being unable to exit --- rofi-checklist.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rofi-checklist.sh b/rofi-checklist.sh index 3f172ed..be4d1b1 100755 --- a/rofi-checklist.sh +++ b/rofi-checklist.sh @@ -102,6 +102,8 @@ case $selection in if [[ -n $selection ]]; then [[ -n $list_raw ]] && list_raw="${list_raw}${NL}" list_raw=`printf "%s%s %s\n" "$list_raw" "$EMPTY_RAW" "$selection"` + else + exit fi ;; esac