From 5af3ae0586ba1f437cecab551ab4fba6fb6bdef1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 8 Nov 2023 06:31:04 +0000 Subject: lbmk: don't use status for unconditional returns in cases where lbmk must always return from a function, there are some cases where it relies on non-zero exit status, which in practise is always the case, but may change in the future if the relevant part is modified e.g. do_something && return 0 the proper form is: do_something return 0 also do this for unconditional exits Signed-off-by: Leah Rowe --- script/vendor/inject | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'script/vendor/inject') diff --git a/script/vendor/inject b/script/vendor/inject index 93017cec..088851ca 100755 --- a/script/vendor/inject +++ b/script/vendor/inject @@ -14,8 +14,10 @@ eval "$(setvars "" archive rom modifygbe nukemode release new_mac)" main() { [ $# -lt 1 ] && err "No options specified." - [ "${1}" = "listboards" ] && \ - items config/coreboot && exit 0 + if [ "${1}" = "listboards" ]; then + items config/coreboot || : + exit 0 + fi archive="${1}" -- cgit v1.2.1