mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-10-28 04:44:11 -07:00
fix infinite loop on no results found
This commit is contained in:
parent
e8054c6cf2
commit
1c8afc16cc
7
ani-cli
7
ani-cli
@ -299,12 +299,7 @@ search_anime() {
|
|||||||
process_search() {
|
process_search() {
|
||||||
progress "Searching $query.."
|
progress "Searching $query.."
|
||||||
search_results=$(search_anime "$query")
|
search_results=$(search_anime "$query")
|
||||||
while [ -z "$search_results" ]; do
|
[ -z "$search_results" ] && die 'No search results found'
|
||||||
retry 'No search results found'
|
|
||||||
query="$REPLY $REPLY2"
|
|
||||||
progress "Searching $scrape.."
|
|
||||||
search_results=$(search_anime "$query")
|
|
||||||
done
|
|
||||||
lg "Search Results: $search_results"
|
lg "Search Results: $search_results"
|
||||||
printf "%s\n" "$search_results"
|
printf "%s\n" "$search_results"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user