From 7b2597b63c23890c28f696fa51ade2a07059ee33 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Sat, 23 May 2020 15:46:44 +0200 Subject: [PATCH] Fix bug in search script --- .local/bin/scripts/search | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/scripts/search b/.local/bin/scripts/search index 98e1d20..bd4b8a9 100755 --- a/.local/bin/scripts/search +++ b/.local/bin/scripts/search @@ -11,7 +11,7 @@ chosen="$( )" [ ! "$chosen" ] && exit 0 -url="$(grep "$chosen" "$bmfile" | awk '{ print $1 }')" +url="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')" [ ! "$url" ] && url="https://duckduckgo.com/?q=$chosen" "$BROWSER" "$url"