Skip to content

Commit

Permalink
fsck-batch: use -1 to indicate bad size/chksum, 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Edgin committed Aug 29, 2024
1 parent 701b885 commit 1ac22b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsck-batch
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ac22b7

Please sign in to comment.