git.sh: simpler for loop in git_am_patches()
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2
parent
de26bb9997
commit
ff00073666
|
@ -110,11 +110,10 @@ tmpclone()
|
||||||
|
|
||||||
git_am_patches()
|
git_am_patches()
|
||||||
{
|
{
|
||||||
for _patch in "$2/"*; do
|
for p in "$2/"*; do
|
||||||
[ -L "$_patch" ] || [ ! -f "$_patch" ] || git -C "$1" am \
|
[ -L "$p" ] && continue; [ -e "$p" ] || continue
|
||||||
"$_patch" || $err "$1 $2: !git am $_patch"
|
[ -d "$p" ] && git_am_patches "$1" "$p" && continue
|
||||||
[ -L "$_patch" ] || [ ! -d "$_patch" ] || \
|
[ ! -f "$p" ] || git -C "$1" am "$p" || $err "$1 $2: !am $p"
|
||||||
git_am_patches "$1" "$_patch"; continue
|
|
||||||
done; return 0
|
done; return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue