From 3095c10db9436b872fa80b5064633f5e6140360a Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 4 Mar 2023 12:42:35 +0530 Subject: 1337x, yts: make proper use of parameter expansion --- 1337x | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '1337x') diff --git a/1337x b/1337x index 2587b68..ea9a7fa 100755 --- a/1337x +++ b/1337x @@ -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" -- cgit v1.2.3