From 0605fbe72032125c8b430f1454794be40ab61009 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 4 Oct 2025 02:43:24 +0100 Subject: xbmk: general cleanup: unroll condensed code lines i overlooked a number of lines, during previous cleanup Signed-off-by: Leah Rowe --- include/inject.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/inject.sh') 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() -- cgit v1.2.1