summaryrefslogtreecommitdiff
path: root/include/inject.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-04 02:43:24 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-04 02:43:24 +0100
commit0605fbe72032125c8b430f1454794be40ab61009 (patch)
tree54f2c020a8b3a09f1c84c930680924e90dfb5ccd /include/inject.sh
parente1c70f43198e7d709026ab7cd0422adc24083bd4 (diff)
xbmk: general cleanup: unroll condensed code lines
i overlooked a number of lines, during previous cleanup Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/inject.sh')
-rw-r--r--include/inject.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/inject.sh b/include/inject.sh
index 444915a1..ac5739c6 100644
--- a/include/inject.sh
+++ b/include/inject.sh
@@ -58,7 +58,9 @@ inject()
check_release
if check_target; then
- patch_release || return 0
+ if ! patch_release; then
+ return 0
+ fi
fi
if [ "$xchanged" = "y" ]; then
remktar
@@ -141,6 +143,7 @@ patch_release()
if e "$tmpromdir/$_hashes" f; then
has_hashes="y"
hashfile="$_hashes"
+
break
fi
done
@@ -159,7 +162,9 @@ readkconfig()
fx_ scankconfig x_ find "$boarddir/config" -type f
eval "`setcfg "$xbtmp/cbcfg" 1`"
- setvfile "$@" || return 1; :
+ if ! setvfile "$@"; then
+ return 1
+ fi
}
scankconfig()