summaryrefslogtreecommitdiff
path: root/config/git/pico-sdk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-03 04:16:10 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-03 05:02:31 +0100
commitd18d1c2cae2c1c43c56d5c10adb469266d1eb08b (patch)
treed72fd8b03a23f1db80e197c5bfce64f566ea2eff /config/git/pico-sdk
parent773d2deaca05cdee754ef4ec79bae9ddd1f3383c (diff)
lbmk: unified execution on find commands
We have a lot of places in lbmk where the output of find is used, and then some function is executed on the result. This is messy, and bloats several of these functions. Now this is unified, into a new function: fx_ What fx_ does is execute a given function, for each result found, with the arguments for a find command appended. For example: find -name ".git" If you wanted to do: foo "$arg" Where "arg" is a search result from find, and you wanted to execute "foo" on each one, you would do: fx_ foo -name ".git" The find utility does have an -exec feature, but I've found that it only works for executables, not functions. fx_ does not return errors, so "foo" in this example would have to do its own error handling. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'config/git/pico-sdk')
0 files changed, 0 insertions, 0 deletions