From 0e66b71fdbcf5067b67ebd45b1adc6bcbbebc599 Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Fri, 29 May 2020 18:50:10 +0200 Subject: [PATCH] Fix bug in search script --- .local/bin/scripts/search | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.local/bin/scripts/search b/.local/bin/scripts/search index fb562f6..fa94d18 100755 --- a/.local/bin/scripts/search +++ b/.local/bin/scripts/search @@ -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"