mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-17 18:34:57 +02:00
lbmk: reduce indentation in execute_command()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -97,11 +97,10 @@ execute_command()
|
|||||||
./build command options "${buildpath}/${mode}" || \
|
./build command options "${buildpath}/${mode}" || \
|
||||||
fail "execute_command: cannot list command options"
|
fail "execute_command: cannot list command options"
|
||||||
lbmk_exit 0
|
lbmk_exit 0
|
||||||
elif [ ! -f "${buildpath}/${mode}/${option}" ]; then
|
|
||||||
fail "Invalid command. Run: ${linkpath} help"
|
|
||||||
else
|
|
||||||
"${buildpath}/${mode}/${option}" $@ || fail "lbmk error"
|
|
||||||
fi
|
fi
|
||||||
|
[ -f "${buildpath}/${mode}/${option}" ] || \
|
||||||
|
fail "Invalid command. Run: ${linkpath} help"
|
||||||
|
"${buildpath}/${mode}/${option}" $@ || fail "lbmk error"
|
||||||
}
|
}
|
||||||
|
|
||||||
usage()
|
usage()
|
||||||
|
|||||||
Reference in New Issue
Block a user