diff options
author | Leah Rowe <leah@libreboot.org> | 2025-05-07 13:27:25 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-05-07 13:28:55 +0100 |
commit | 0faef899469818410e5e6d481f1e6c4fa5ad3d3d (patch) | |
tree | 84061935c0e45eff7201874914b9fdec6e41ea39 /include/git.sh | |
parent | 2b7f6b7d7cedfcc7661f02b8092707fde09460a0 (diff) |
lib.sh: support any command on find_exec()
right now, we assume "find", but it adds any number of
arguments next to that.
change it instead to support any command, where the
assumption is that it would generate a list of files
and directories.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/git.sh')
-rw-r--r-- | include/git.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh index 0a05b5ab..81c75806 100644 --- a/include/git.sh +++ b/include/git.sh @@ -108,7 +108,7 @@ tmpclone() ( [ $# -gt 5 ] || git clone "$repodir" "$3" || err "!clone $repodir $3" git -C "$3" reset --hard "$4" || err "!reset $1 $2 $3 $4 $5" - fx_ "eval x_ git -C \"$3\" am" "$5" -type f + fx_ "eval x_ git -C \"$3\" am" find "$5" -type f ) || repofail="y" [ "$repofail" = "y" ] && [ $# -lt 6 ] && tmpclone "$@" retry |