bugfix: use exit to quit (issue #8)

This commit is contained in:
2025-07-08 10:33:21 +02:00
parent 75acdc87f3
commit 93cb0852ea

View File

@@ -159,7 +159,7 @@ while true; do
# Line 3: relative file path # Line 3: relative file path
lines=$(echo "$selection" | wc -l) lines=$(echo "$selection" | wc -l)
if [ "$lines" -eq 1 ]; then if [ "$lines" -eq 1 ]; then
return 0 exit 0
fi fi
query=$(echo "$selection" | head -n 1) query=$(echo "$selection" | head -n 1)
key=$(echo "$selection" | head -n 2 | tail -n 1) key=$(echo "$selection" | head -n 2 | tail -n 1)