aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2016-03-10 22:03:32 +0000
committerFrancis Rowe <info@gluglug.org.uk>2016-03-10 22:03:32 +0000
commite15beed400f3ced1ba2c60fb78232de177a05e30 (patch)
tree0b5968ba7389540d30a470094b57bb56a5b4f638
parent8f41da759a0f5352093ced98a2f03e62c970f8de (diff)
downloadlibrebootfr-e15beed400f3ced1ba2c60fb78232de177a05e30.tar.gz
librebootfr-e15beed400f3ced1ba2c60fb78232de177a05e30.zip
build: show help output when there is an error
-rwxr-xr-xbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/build b/build
index a4fa0a70..fa8b54db 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