mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37: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;
|
||||
}
|
||||
} 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue