diff options
-rwxr-xr-x | 1337x | 3 | ||||
-rwxr-xr-x | yts | 3 |
2 files changed, 2 insertions, 4 deletions
@@ -69,8 +69,7 @@ main() curl -Is "$url_1337x" > /dev/null || url_1337x="$proxy_1337x" - query="$*" - : "${query:=$(printf "" | dmenu -p " ")}" + query="${*:-$(printf "" | dmenu -p " ")}" [ -z "$query" ] && die "please enter a query" @@ -77,8 +77,7 @@ main() shift fi - query="$*" - : "${query:=$(printf "" | dmenu -p " ")}" + query="${*:-$(printf "" | dmenu -p " ")}" [ -z "$query" ] && die "please enter a query" |