From: Andy Shevchenko Date: Tue, 11 Dec 2018 16:22:28 +0000 (+0200) Subject: scripts/check-config.sh: Add usage() X-Git-Tag: v2019.01-rc3~15^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=94ca269049e2a57107c3d7a3713e8bfd054a2153;p=platform%2Fkernel%2Fu-boot.git scripts/check-config.sh: Add usage() When arguments are not supplied the error message is misleading and doesn't tell what exactly has to be done. Fix this by adding usage() and call it if above circumstance occurs. Signed-off-by: Andy Shevchenko Reviewed-by: Simon Glass --- diff --git a/scripts/check-config.sh b/scripts/check-config.sh index 4848ca6..583f7d0 100755 --- a/scripts/check-config.sh +++ b/scripts/check-config.sh @@ -17,6 +17,15 @@ set -e set -u +PROG_NAME="${0##*/}" + +usage() { + echo "$PROG_NAME " + exit 1 +} + +[ $# -ge 3 ] || usage + path="$1" whitelist="$2" srctree="$3"