Commit a4ec7f5
committed
Use find -print0 and xargs -0 to fix file hashing with special character filenames
Example:
```
++ find images/hook-embedded -type f -not -type l -print
++ LC_ALL=C
++ sort
++ xargs sha256sum
++ sha256sum
++ cut '-d ' -f1
sha256sum: images/hook-embedded/images/overlay2/4f2b976a728e2f978ec5a0728e7a7de5ac8e86d05424567038829628a23a0787/diff/nix/store/q94x70qac6cnly6w60mlgfkaa8npk9xw-systemd-257.5/example/systemd/system/system-systemdx2dcryptsetup.slice: No such file or directory
```
Signed-off-by: Zubarev Alexander <astrike@avride.ai>1 parent 0182cbc commit a4ec7f5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments