fix check_date bug

This commit is contained in:
ksyasuda 2022-01-07 12:10:20 -08:00
parent d19ea5f478
commit 3b64d74bf2

View File

@ -182,7 +182,7 @@ check_db() {
check_date() { check_date() {
source_dt="$1" source_dt="$1"
target_dt="$2" target_dt="$2"
if [[ "$i" < "$j" ]] || [[ "$i" == "$j" ]]; then if [[ "$source_dt" < "$target_dt" ]] || [[ "$source_dt" == "$target_dt" ]]; then
return 1 return 1
else else
return 0 return 0