mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-22 05:00:08 +02:00
mk: tidy up the switch/case block in main()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -30,18 +30,12 @@ main()
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
version) printf "%s\nWebsite: %s\n" "$relname" "$projectsite" ;;
|
||||||
release)
|
release|download|inject)
|
||||||
|
cmd="vendor_$1" && [ "$1" = "release" ] && cmd="mkrelease"
|
||||||
shift 1
|
shift 1
|
||||||
mkrelease "$@" ;;
|
$cmd "$@" ;;
|
||||||
inject)
|
-*) rval=1 ;;
|
||||||
shift 1
|
*) $err "bad command" ;;
|
||||||
vendor_inject "$@" ;;
|
|
||||||
download)
|
|
||||||
shift 1
|
|
||||||
vendor_download "$@" ;;
|
|
||||||
-*)
|
|
||||||
rval=1 ;;
|
|
||||||
*) $err "bad command"
|
|
||||||
esac
|
esac
|
||||||
set -u -e # some commands disable them. turn them on!
|
set -u -e # some commands disable them. turn them on!
|
||||||
return $rval
|
return $rval
|
||||||
|
|||||||
Reference in New Issue
Block a user