Fix bug in search script
This commit is contained in:
parent
b0eded17d0
commit
ff9c446425
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user