diff --git a/ani-cli b/ani-cli index c43e41a47..a8b6f4b38 100755 --- a/ani-cli +++ b/ani-cli @@ -193,7 +193,7 @@ get_episode_url() { links=$(cat "$cache_dir"/* | sed 's|^Mp4-||g;/http/!d;/Alt/d' | sort -g -r -s) rm -r "$cache_dir" episode=$(select_quality "$quality") - if echo "$ep_list" | grep -q "^$ep_no$"; then + if printf "%s" "$ep_list" | grep -q "^$ep_no$"; then [ -z "$episode" ] && die "Episode is released, but no valid sources!" else [ -z "$episode" ] && die "Episode not released!"