From 3b64d74bf2305d89a2134d378c560557ae1aebc9 Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Fri, 7 Jan 2022 12:10:20 -0800 Subject: [PATCH] fix check_date bug --- ani-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ani-cli b/ani-cli index 7c7233d..d7f8030 100755 --- a/ani-cli +++ b/ani-cli @@ -182,7 +182,7 @@ check_db() { check_date() { source_dt="$1" target_dt="$2" - if [[ "$i" < "$j" ]] || [[ "$i" == "$j" ]]; then + if [[ "$source_dt" < "$target_dt" ]] || [[ "$source_dt" == "$target_dt" ]]; then return 1 else return 0