mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-21 00:27:09 +02:00
git.sh: merge for loops in git_am_patches()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+4
-6
@@ -112,12 +112,10 @@ git_am_patches()
|
|||||||
{
|
{
|
||||||
for _patch in "$2/"*; do
|
for _patch in "$2/"*; do
|
||||||
[ -L "$_patch" ] || [ ! -f "$_patch" ] || git -C "$1" am \
|
[ -L "$_patch" ] || [ ! -f "$_patch" ] || git -C "$1" am \
|
||||||
"$_patch" || $err "$1 $2: !git am $_patch"; continue
|
"$_patch" || $err "$1 $2: !git am $_patch"
|
||||||
done
|
[ -L "$_patch" ] || [ ! -d "$_patch" ] || \
|
||||||
for _patches in "$2/"*; do
|
git_am_patches "$1" "$_patch"; continue
|
||||||
[ ! -L "$_patches" ] && [ -d "$_patches" ] && \
|
done; return 0
|
||||||
git_am_patches "$1" "$_patches"; continue
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
link_crossgcc()
|
link_crossgcc()
|
||||||
|
|||||||
Reference in New Issue
Block a user