Fix bug in search script

This commit is contained in:
Wiktor Zykubek 2020-05-29 18:50:10 +02:00
parent e4e7e2301b
commit 0e66b71fdb

View File

@ -14,8 +14,7 @@ chosen="$(
url="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')"
[ ! "$url" ] && {
[ "$(echo "$chosen" | grep "[a-z|0-9]\.[a-z|0-9]")" ] &&
url="https://$chosen" || url="https://duckduckgo.com/?q=$chosen"
url="$chosen" || url="https://duckduckgo.com/?q=$chosen"
}
"$BROWSER" "$url"