Fix bug in search script
This commit is contained in:
parent
e4e7e2301b
commit
0e66b71fdb
@ -14,8 +14,7 @@ chosen="$(
|
|||||||
url="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')"
|
url="$(grep -m 1 "$chosen" "$bmfile" | awk '{ print $1 }')"
|
||||||
[ ! "$url" ] && {
|
[ ! "$url" ] && {
|
||||||
[ "$(echo "$chosen" | grep "[a-z|0-9]\.[a-z|0-9]")" ] &&
|
[ "$(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"
|
"$BROWSER" "$url"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user