Page MenuHomeFreeBSD

sys/tools/fdt/embed_dtb.sh: small fixes
Needs ReviewPublic

Authored by thebugfixers_pm.me on Fri, Jun 26, 10:44 AM.
Tags
None
Referenced Files
F161036063: D57872.id180688.diff
Tue, Jun 30, 12:43 AM
F160938643: D57872.id180688.diff
Mon, Jun 29, 6:33 AM
F160938532: D57872.diff
Mon, Jun 29, 6:31 AM
Unknown Object (File)
Sun, Jun 28, 12:02 PM
Subscribers

Details

Reviewers
None
Group Reviewers
Src Committers
Contributor Reviews (src)
Summary

Main change:

It is not clear the fragile ls -l $2 | awk '{print $5}' was chosen as a way to get file size, so have replaced with stat -f%z "$2"

Other minor changes:

Use $(...) notation instead of legacy backticks
Double quote to prevent globbing and word splitting

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped