mirror of
https://github.com/uutils/coreutils
synced 2024-12-12 14:22:41 +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…
Reference in a new issue