From c03055d5878a1c1c213da80a3d02a427084ae86d Mon Sep 17 00:00:00 2001 From: Harshith Date: Mon, 21 Jun 2021 21:57:36 +0530 Subject: [PATCH] refactor: check for valid episode number --- ani-cli | 1 + 1 file changed, 1 insertion(+) diff --git a/ani-cli b/ani-cli index e89e5a6..56ec476 100755 --- a/ani-cli +++ b/ani-cli @@ -308,6 +308,7 @@ while :; do s) printf "${c_blue}Choose episode $c_cyan[1-%d]$c_reset:$c_green " $last_ep_number read episode printf "$c_reset" + [ "$episode" -eq "$episode" ] 2>/dev/null || die "Invalid number entered" ;; q)