summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-10 17:03:32 (EST)
committer Francis Rowe <info@gluglug.org.uk>2016-03-10 17:03:32 (EST)
commite15beed400f3ced1ba2c60fb78232de177a05e30 (patch)
tree0b5968ba7389540d30a470094b57bb56a5b4f638 /build
parent8f41da759a0f5352093ced98a2f03e62c970f8de (diff)
downloadlibreboot-e15beed400f3ced1ba2c60fb78232de177a05e30.zip
libreboot-e15beed400f3ced1ba2c60fb78232de177a05e30.tar.gz
libreboot-e15beed400f3ced1ba2c60fb78232de177a05e30.tar.bz2
build: show help output when there is an error
Diffstat (limited to 'build')
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/build b/build
index a4fa0a7..fa8b54d 100755
--- a/build
+++ b/build
@@ -87,10 +87,12 @@ if [ $# -gt 1 ]; then
if [ -f "${build}"/"${mode}"/"${option}" ]; then
"${build}"/"${mode}"/"${option}" "$@"
else
+ help
die "Invalid option for '${mode}'. See './build ${mode} list'."
fi
else
- die "Invalid mode. See './build help'."
+ help
+ die "Invalid mode '${mode}'. See './build help'."
fi
esac
else