From: Olof Johansson Date: Thu, 11 Dec 2014 20:55:03 +0000 (-0800) Subject: merge_config.sh: Display usage if given too few arguments X-Git-Tag: v4.0-rc1~38^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09950bc256e3628d275f90e016e6f5a039fbdcab;p=thirdparty%2Fkernel%2Flinux.git merge_config.sh: Display usage if given too few arguments Two or more arguments are always expected. Show usage and exit if given less. Signed-off-by: Olof Johansson Signed-off-by: Michal Marek --- diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 81b0c61bb9e20..2ab91b9b100dc 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh @@ -77,6 +77,11 @@ while true; do esac done +if [ "$#" -lt 2 ] ; then + usage + exit +fi + INITFILE=$1 shift;