summaryrefslogtreecommitdiff
path: root/lbmk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-08-20 21:34:08 +0100
committerLeah Rowe <leah@libreboot.org>2023-08-20 21:34:08 +0100
commit6e92d9a359a029f3e6ea5aa0df4f569c0c2a7849 (patch)
tree4ac114809486151103dc43f4c72c13175739586a /lbmk
parent9031bb7ba79022f1334b05d4d8d5caaadf775bac (diff)
fix "./build help"
thanks Riku Viitanen for pointing out the bug i b0rked it myself in an earlier revision, while auditing. it's funny because i made this exact same mistake during the last audit, and in the exact same way it's fixed once again Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'lbmk')
-rwxr-xr-xlbmk14
1 files changed, 7 insertions, 7 deletions
diff --git a/lbmk b/lbmk
index c71b64a7..c34a9680 100755
--- a/lbmk
+++ b/lbmk
@@ -33,20 +33,14 @@ main()
{
if [ "${0##*/}" = "lbmk" ]; then
die "Do not run the lbmk script directly!"
- elif [ $# -lt 2 ]; then
+ elif [ $# -lt 1 ]; then
die "Too few arguments. Try: ${0} help"
fi
buildpath="./resources/scripts/${0##*/}"
mode="${1}"
- if [ "${mode}" = "dependencies" ]; then
- install_dependencies $@ || die "Could not install dependencies"
- exit 0
- fi
./.gitcheck
- [ "${mode}" != "dependencies" ] && \
- ./resources/scripts/misc/versioncheck
if [ "${mode}" = help ]; then
usage $0
exit 0
@@ -54,6 +48,12 @@ main()
usage $0
exit 0
fi
+ if [ "${mode}" = "dependencies" ]; then
+ install_dependencies $@ || die "Could not install dependencies"
+ exit 0
+ else
+ ./resources/scripts/misc/versioncheck
+ fi
option="${2}"
shift 2