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;
}
} else {
if line.is_empty() {
// Don't show any warning for empty lines
if line.is_empty() || line.starts_with("#") {
// Don't show any warning for empty or commented lines.
continue;
}
if warn {