From 578f105d62e088574ff8fecdc5d2e342e69335e7 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Tue, 19 Dec 2023 02:26:26 +0000 Subject: git.sh git_am_patches: reduce indentation Signed-off-by: Leah Rowe --- include/git.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index 57d8f4f9..7d06479a 100755 --- a/include/git.sh +++ b/include/git.sh @@ -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 -- cgit v1.2.1