aboutsummaryrefslogtreecommitdiff
path: root/yts
diff options
context:
space:
mode:
Diffstat (limited to 'yts')
-rwxr-xr-xyts3
1 files changed, 1 insertions, 2 deletions
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"