handle empty query
This commit is contained in:
parent
20c476a558
commit
2e5aec70c2
1 changed files with 6 additions and 0 deletions
6
tyt
6
tyt
|
|
@ -136,6 +136,12 @@ then
|
||||||
error "youtube-dl was not found, please install it"
|
error "youtube-dl was not found, please install it"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Handle empty query
|
||||||
|
if [ "$query" == "" ]
|
||||||
|
then
|
||||||
|
print_usage
|
||||||
|
fi
|
||||||
|
|
||||||
print_logo
|
print_logo
|
||||||
echo -ne "Searching for: $text_bold${query:1}$text_reset\n"
|
echo -ne "Searching for: $text_bold${query:1}$text_reset\n"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue