diff --git a/ani-cli b/ani-cli index 90f9ced68..ce0d29395 100755 --- a/ani-cli +++ b/ani-cli @@ -1,6 +1,6 @@ #!/bin/sh -version_number="4.2.0" +version_number="4.2.1" # UI @@ -240,8 +240,8 @@ play_episode() { } play() { - start=$(printf "%s" "$ep_no" | grep -Eo '^(-1|[0-9]+(\.[0-9])?)') - end=$(printf "%s" "$ep_no" | grep -Eo '(-1|[0-9]+(\.[0-9])?)$') + start=$(printf "%s" "$ep_no" | grep -Eo '^(-1|[0-9]+(\.[0-9]+)?)') + end=$(printf "%s" "$ep_no" | grep -Eo '(-1|[0-9]+(\.[0-9]+)?)$') [ "$start" = "-1" ] && ep_no=$(printf "%s" "$ep_list" | tail -n1) && unset start [ -z "$end" ] || [ "$end" = "$start" ] && unset start end [ "$end" = "-1" ] && end=$(printf "%s" "$ep_list" | tail -n1)