From 1ac22b7852fb23baf2c235d099e1dd21a7e85d66 Mon Sep 17 00:00:00 2001 From: Tony Edgin Date: Thu, 29 Aug 2024 16:23:20 -0700 Subject: [PATCH] fsck-batch: use -1 to indicate bad size/chksum, 2 --- fsck-batch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fsck-batch b/fsck-batch index 2760854..8827fb3 100755 --- a/fsck-batch +++ b/fsck-batch @@ -264,7 +264,7 @@ CHECK_OBJ() { read -r fileSize fileChksum < <(GET_STORE_INFO "$storeHost" "$filePath") local reason - if [[ -z "$fileSize" ]] || [[ -z "$fileChksum" ]]; then + if [[ "$fileSize" == '-1' ]] && [[ "$fileChksum" == '-1' ]]; then reason=missing elif [[ "$replSize" != "$fileSize" ]]; then reason=size