From ab37d6d7a8fd09dab79afdcd5989a3ea6b8a361d Mon Sep 17 00:00:00 2001 From: HirschBerge Date: Wed, 9 Oct 2024 06:35:14 -0400 Subject: [PATCH] changed echo to printf tested working --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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!"