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:
parent
85b0ef132b
commit
f542bbca68
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue