Fix bug in search script

This commit is contained in:
Wiktor Zykubek 2020-05-23 15:46:44 +02:00
parent e95677b4af
commit 7b2597b63c

View File

@ -11,7 +11,7 @@ chosen="$(
)" )"
[ ! "$chosen" ] && exit 0 [ ! "$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" [ ! "$url" ] && url="https://duckduckgo.com/?q=$chosen"
"$BROWSER" "$url" "$BROWSER" "$url"