diff options
author | Leah Rowe <leah@libreboot.org> | 2025-09-26 00:21:40 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-09-26 00:21:40 +0100 |
commit | 574fd30cdea0d9b53200ed3dc9260ebd65ad0fab (patch) | |
tree | 147e1828d83974271f3a45f0a3e8e0799dffee53 | |
parent | 4fbafaaa46aba852b44dd80f3bae5635ad17e476 (diff) |
inject.sh: don't exit from patch_release
return instead. xbmk's coding style specifically
prohibits anything other than x_ or err from
running "exit".
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r-- | include/inject.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/inject.sh b/include/inject.sh index bc47d23e..b4dba257 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -56,7 +56,7 @@ inject() check_release if check_target; then - patch_release + patch_release || return 0 fi if [ "$xchanged" = "y" ]; then remktar @@ -144,10 +144,7 @@ patch_release() done if ! readkconfig; then - # TODO: audit this. lbmk coding style specifically - # prohibits direct exits. should probably return? - - exit 0 + return 1 elif [ -n "$new_mac" ] && [ -n "$CONFIG_GBE_BIN_PATH" ]; then modify_mac fi |