From e42cb4f4cd513f512397ff7a46b6174b39a9708e Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 26 Sep 2025 00:09:46 +0100 Subject: xbmk: tidy up some if statements this is an extension of the previous work to unroll most of the condensed code lines. Signed-off-by: Leah Rowe --- include/inject.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include/inject.sh') diff --git a/include/inject.sh b/include/inject.sh index cd5be73b..bc47d23e 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -58,7 +58,6 @@ inject() if check_target; then patch_release fi - if [ "$xchanged" = "y" ]; then remktar fi @@ -149,9 +148,7 @@ patch_release() # prohibits direct exits. should probably return? exit 0 - fi - - if [ -n "$new_mac" ] && [ -n "$CONFIG_GBE_BIN_PATH" ]; then + elif [ -n "$new_mac" ] && [ -n "$CONFIG_GBE_BIN_PATH" ]; then modify_mac fi } -- cgit v1.2.1