From 2e5aec70c208307b05b6ef8c156c8898e245ffdb Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Wed, 6 Oct 2021 11:18:30 +0200 Subject: [PATCH] handle empty query --- tyt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tyt b/tyt index 51c8912..7979e46 100755 --- a/tyt +++ b/tyt @@ -136,6 +136,12 @@ then error "youtube-dl was not found, please install it" fi +# Handle empty query +if [ "$query" == "" ] +then + print_usage +fi + print_logo echo -ne "Searching for: $text_bold${query:1}$text_reset\n"