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>btrfsvols
parent
9031bb7ba7
commit
6e92d9a359
14
lbmk
14
lbmk
|
@ -33,20 +33,14 @@ main()
|
||||||
{
|
{
|
||||||
if [ "${0##*/}" = "lbmk" ]; then
|
if [ "${0##*/}" = "lbmk" ]; then
|
||||||
die "Do not run the lbmk script directly!"
|
die "Do not run the lbmk script directly!"
|
||||||
elif [ $# -lt 2 ]; then
|
elif [ $# -lt 1 ]; then
|
||||||
die "Too few arguments. Try: ${0} help"
|
die "Too few arguments. Try: ${0} help"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
buildpath="./resources/scripts/${0##*/}"
|
buildpath="./resources/scripts/${0##*/}"
|
||||||
|
|
||||||
mode="${1}"
|
mode="${1}"
|
||||||
if [ "${mode}" = "dependencies" ]; then
|
|
||||||
install_dependencies $@ || die "Could not install dependencies"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
./.gitcheck
|
./.gitcheck
|
||||||
[ "${mode}" != "dependencies" ] && \
|
|
||||||
./resources/scripts/misc/versioncheck
|
|
||||||
if [ "${mode}" = help ]; then
|
if [ "${mode}" = help ]; then
|
||||||
usage $0
|
usage $0
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -54,6 +48,12 @@ main()
|
||||||
usage $0
|
usage $0
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
if [ "${mode}" = "dependencies" ]; then
|
||||||
|
install_dependencies $@ || die "Could not install dependencies"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
./resources/scripts/misc/versioncheck
|
||||||
|
fi
|
||||||
|
|
||||||
option="${2}"
|
option="${2}"
|
||||||
shift 2
|
shift 2
|
||||||
|
|
Loading…
Reference in New Issue