diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-03-04 12:42:35 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-03-11 19:05:05 +0530 |
commit | 3095c10db9436b872fa80b5064633f5e6140360a (patch) | |
tree | b162b309331b3aeb535ec8929867536ade295458 | |
parent | ed8560aa4ff35989dc6ea6f39da3b084300685b8 (diff) |
1337x, yts: make proper use of parameter expansion
-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" |