Fix bug in search script

This commit is contained in:
samedamci 2020-05-29 18:50:10 +02:00
parent b0eded17d0
commit ff9c446425
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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"