From 6e5b3c463a82f380aef290d55ba90557248d1898 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Wed, 16 Feb 2022 23:58:20 -0800 Subject: [PATCH] fix script not quitting when escaping from play from file mode --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index b2c3a65..e6b73d6 100755 --- a/ani-cli +++ b/ani-cli @@ -397,7 +397,7 @@ find_media() { selection="$(rofi -dpi "$DPI" -dmenu -no-custom -async-pre-read 33 -config "$ROFI_CFG" \ -l 15 -i -sep '|' -mesg "$(generate_span "Current directory: $inp")" -a "$watched" \ -p "Enter selection" -window-title 'aniwrapper' <<< "$inputlist")" - lg "SELECTION: $selection" 1> /dev/stderr + [ -z "$selection" ] && return 1 case "$selection" in Back | ../) dotdotslash="${inp%/*}"