mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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>
This commit is contained in:
+2
-5
@@ -56,7 +56,7 @@ inject()
|
|||||||
|
|
||||||
check_release
|
check_release
|
||||||
if check_target; then
|
if check_target; then
|
||||||
patch_release
|
patch_release || return 0
|
||||||
fi
|
fi
|
||||||
if [ "$xchanged" = "y" ]; then
|
if [ "$xchanged" = "y" ]; then
|
||||||
remktar
|
remktar
|
||||||
@@ -144,10 +144,7 @@ patch_release()
|
|||||||
done
|
done
|
||||||
|
|
||||||
if ! readkconfig; then
|
if ! readkconfig; then
|
||||||
# TODO: audit this. lbmk coding style specifically
|
return 1
|
||||||
# prohibits direct exits. should probably return?
|
|
||||||
|
|
||||||
exit 0
|
|
||||||
elif [ -n "$new_mac" ] && [ -n "$CONFIG_GBE_BIN_PATH" ]; then
|
elif [ -n "$new_mac" ] && [ -n "$CONFIG_GBE_BIN_PATH" ]; then
|
||||||
modify_mac
|
modify_mac
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user