mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user