commit 080f624
hovercats
·
2024-09-06 01:05:40 +0000 UTC
parent 1c14b82
dsearch: use interal tool for test
1 files changed,
+2,
-5
+2,
-5
1@@ -10,8 +10,5 @@ ENGINE='https://duckduckgo.com/?q='
2 # Spaces are not allowed, so substitute them to correct string
3 STRING=`{printf '' | dmenu -c -p 'Search' | sed 's/ /%20/g'}
4
5-if (test -z $STRING){
6- exit 1
7-}
8-if not
9- exec $BROWSER $ENGINE$STRING
10+if (~ $#STRING 0) exit 1
11+if not exec $BROWSER $ENGINE$STRING