From 2f783f2ba34441cc80ce6a82abdfa2c318e2f755 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 7 Jan 2024 17:46:11 -0500 Subject: [PATCH] fix: confirm prompt should return not exit --- modules/nixos/graphical/rofi/rofi-prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nixos/graphical/rofi/rofi-prompt.sh b/modules/nixos/graphical/rofi/rofi-prompt.sh index 85ca923..5c87ddd 100755 --- a/modules/nixos/graphical/rofi/rofi-prompt.sh +++ b/modules/nixos/graphical/rofi/rofi-prompt.sh @@ -42,6 +42,6 @@ chosen=$(printf '%s;%s\n' "$yes" "$no" | -selected-row 1) case "$chosen" in - "$yes") exit 0 ;; - *) exit 1 ;; + "$yes") return 0 ;; + *) return 1 ;; esac