bugfix: use exit to quit (issue #8)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user