handle empty query

This commit is contained in:
Denis Lehmann 2021-10-06 11:18:30 +02:00
parent 20c476a558
commit 2e5aec70c2

6
tyt
View file

@ -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"