diff options
author | Francis Rowe <info@gluglug.org.uk> | 2016-03-10 22:03:32 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2016-03-10 22:03:32 +0000 |
commit | e15beed400f3ced1ba2c60fb78232de177a05e30 (patch) | |
tree | 0b5968ba7389540d30a470094b57bb56a5b4f638 | |
parent | 8f41da759a0f5352093ced98a2f03e62c970f8de (diff) | |
download | librebootfr-e15beed400f3ced1ba2c60fb78232de177a05e30.tar.gz librebootfr-e15beed400f3ced1ba2c60fb78232de177a05e30.zip |
build: show help output when there is an error
-rwxr-xr-x | build | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |