mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-30 20:47:46 +00:00
hashsum: simplify the println
This commit is contained in:
parent
a9a11f486e
commit
ab2d2488a3
1 changed files with 2 additions and 2 deletions
|
@ -805,9 +805,9 @@ where
|
|||
println!("{sum}");
|
||||
} else if options.zero {
|
||||
// with zero, we don't escape the filename
|
||||
print!("{} {}{}\0", sum, binary_marker, filename.display());
|
||||
print!("{sum} {binary_marker}{}\0", filename.display());
|
||||
} else {
|
||||
println!("{}{} {}{}", prefix, sum, binary_marker, escaped_filename);
|
||||
println!("{prefix}{sum} {binary_marker}{escaped_filename}");
|
||||
}
|
||||
}
|
||||
if bad_format > 0 && failed_cksum == 0 && correct_format == 0 && !options.status {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue