1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

uucore(checksum): add support for comment lines in checksum verification

This commit is contained in:
Dorian Péron 2024-10-16 12:26:51 +02:00
parent 85b0ef132b
commit f542bbca68

View file

@ -575,8 +575,8 @@ where
res.failed_cksum += 1; res.failed_cksum += 1;
} }
} else { } else {
if line.is_empty() { if line.is_empty() || line.starts_with("#") {
// Don't show any warning for empty lines // Don't show any warning for empty or commented lines.
continue; continue;
} }
if warn { if warn {