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"