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 --- yts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'yts') diff --git a/yts b/yts index 7733057..0720885 100755 --- a/yts +++ b/yts @@ -77,8 +77,7 @@ main() shift fi - query="$*" - : "${query:=$(printf "" | dmenu -p " ")}" + query="${*:-$(printf "" | dmenu -p " ")}" [ -z "$query" ] && die "please enter a query" -- cgit v1.2.3