[Buildroot] [PATCH 1/9] support/scripts/genimage.sh: show usage when invoked incorrectly
Peter Korsgaard
peter at korsgaard.com
Mon Dec 11 19:14:35 UTC 2017
>>>>> "Luca" == Luca Ceresoli <luca at lucaceresoli.net> writes:
> Signed-off-by: Luca Ceresoli <luca at lucaceresoli.net>
> ---
> support/scripts/genimage.sh | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
> diff --git a/support/scripts/genimage.sh b/support/scripts/genimage.sh
> index 625afc108c82..5ed9f9c1ae1e 100755
> --- a/support/scripts/genimage.sh
> +++ b/support/scripts/genimage.sh
> @@ -1,7 +1,11 @@
> #!/usr/bin/env bash
> die() {
> - echo "Error: $@" >&2
> + cat <<EOF >&2
> +Error: $@
> +
> +Usage: S{0} -c GENIMAGE_CONFIG_FILE
This should presumably have been ${0}?
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list