From 93cb0852ea8381b219ad53c87c543bd4bebfc826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Tue, 8 Jul 2025 10:33:21 +0200 Subject: [PATCH] bugfix: use `exit` to quit (issue #8) --- src/main.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sh b/src/main.sh index 45d3cbb..45e15cd 100644 --- a/src/main.sh +++ b/src/main.sh @@ -159,7 +159,7 @@ while true; do # Line 3: relative file path lines=$(echo "$selection" | wc -l) if [ "$lines" -eq 1 ]; then - return 0 + exit 0 fi query=$(echo "$selection" | head -n 1) key=$(echo "$selection" | head -n 2 | tail -n 1)