mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
Revert "xbmk: general code cleanup"
This reverts commit 1b65e8914c.
NOTE: cleanup of xbmk_git_init was retained
this "cleanup" actually made the code harder to read.
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -10,15 +10,12 @@ set -u -e
|
||||
ispwd="true"
|
||||
|
||||
if [ "$0" != "./mk" ]; then
|
||||
|
||||
ispwd="false"
|
||||
fi
|
||||
if [ "$ispwd" = "true" ] && [ -L "mk" ]; then
|
||||
|
||||
ispwd="false"
|
||||
fi
|
||||
if [ "$ispwd" = "false" ]; then
|
||||
|
||||
printf "You must run this in the proper work directory.\n" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
@@ -37,29 +34,22 @@ main()
|
||||
{
|
||||
cmd=""
|
||||
if [ $# -gt 0 ]; then
|
||||
|
||||
cmd="$1"
|
||||
|
||||
shift 1
|
||||
fi
|
||||
|
||||
case "$cmd" in
|
||||
|
||||
version)
|
||||
|
||||
printf "%s\nWebsite: %s\n" "$relname" "$projectsite"
|
||||
;;
|
||||
|
||||
release|download|inject|prep_mr_import)
|
||||
|
||||
$cmd "$@"
|
||||
;;
|
||||
|
||||
-*)
|
||||
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
|
||||
err "bad command" main "$@"
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user