commit 934f65a6e021956a8456441d3c3512c19a6f1da8
parent ff028105c55511853341a84195d8d0c7ce9b32a7
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 13 Jan 2020 19:57:38 +0100
Bugfixes for local idiotbox usage
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/ducksearch b/.local/bin/ducksearch
@@ -23,10 +23,10 @@ else
$BROWSER "https://www.openstreetmap.org/search?query=${choice/!map/}"
;;
*!yt*)
- idiotbox="~/code/idiotbox"
+ idiotbox="$HOME/code/idiotbox"
if [ -x "$idiotbox/cgi" ]; then
tmpfile=/tmp/yt.html
- QUERY_STRING="q=$(printf '%s' "$choice" | tr ' ' '+')" \
+ QUERY_STRING="q=$(printf '%s' "${choice/!yt/}" | tr ' ' '+')" \
"$idiotbox/cgi" > "$tmpfile"
cp -r "$idiotbox/css" /tmp
$BROWSER "$tmpfile"