diff options
author | Olof Johansson <olof@lixom.net> | 2014-12-11 15:55:03 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2015-01-07 15:28:12 -0500 |
commit | 09950bc256e3628d275f90e016e6f5a039fbdcab (patch) | |
tree | 3bc1f01a3ad542a2b5ea583980f00838af9f5206 /scripts | |
parent | 6341e62b212a2541efb0160c470e90bd226d5496 (diff) |
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 <olof@lixom.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kconfig/merge_config.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 81b0c61bb9e2..2ab91b9b100d 100755 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh | |||
@@ -77,6 +77,11 @@ while true; do | |||
77 | esac | 77 | esac |
78 | done | 78 | done |
79 | 79 | ||
80 | if [ "$#" -lt 2 ] ; then | ||
81 | usage | ||
82 | exit | ||
83 | fi | ||
84 | |||
80 | INITFILE=$1 | 85 | INITFILE=$1 |
81 | shift; | 86 | shift; |
82 | 87 | ||