Skip to content

Commit

Permalink
changed echo to printf
Browse files Browse the repository at this point in the history
tested working
  • Loading branch information
HirschBerge committed Oct 9, 2024
1 parent 8f1042b commit ab37d6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit ab37d6d

Please sign in to comment.