diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-05 20:33:02 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-05 20:33:02 +0100 |
commit | f98e34a24dd21ebafbfac2e019d3a4bc1cf500cb (patch) | |
tree | 1fb9eaad6cc804f62c9e2adfeaf53937dee1e327 /config/grub/default | |
parent | 8ca06463ebc42142ca7618ee6a07950059cf4820 (diff) |
singletree/elfcheck: use fx_, not fe_
fe_ returns an error on the find command, but we rely
on the only error ever being our intentional exit, upon
discovering files.
in singletree, the directory being checked was already
checked first, so we know it's safe not to err on find;
and find not reporting an error if no files are found is
ok.
on elfcheck, it's very much the same thing. In fact, we
very much want it to return 0 if the directory doesn't
exist, or if files don't exist within it.
Therefore, use fx_ which is designed for this use-case.
Quick re-cap: fx and fe execute a given function name with
each line outputting by find as an argument, each time. It
is somewhat similar in scope to find's -exec command.
We use fe_ as shorthand in several places all over lbmk.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/grub/default')
0 files changed, 0 insertions, 0 deletions