git.sh git_am_patches: reduce indentation

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe 2023-12-19 02:26:26 +00:00
parent cbd19d81fd
commit 578f105d62
1 changed files with 3 additions and 4 deletions

View File

@ -151,10 +151,9 @@ git_am_patches()
[ -L "${patch}" ] && continue
[ -f "${patch}" ] || continue
git am "${patch}" || patchfail="y"
if [ "${patchfail}" = "y" ]; then
git am --abort || err "${sdir}: !git am --abort"
err "!git am ${patch} -> ${sdir}"
fi
[ "${patchfail}" != "y" ] && continue
git am --abort || err "${sdir}: !git am --abort"
err "!git am ${patch} -> ${sdir}"
done
) || err "PATCH FAILURE"
for patches in "${patchdir}/"*; do