Messages in this thread Patch in this message | | | From | Olof Johansson <> | Subject | [PATCH 1/2] merge_config.sh: Display usage if given too few arguments | Date | Thu, 11 Dec 2014 12:55:03 -0800 |
| |
Two or more arguments are always expected. Show usage and exit if given less.
Signed-off-by: Olof Johansson <olof@lixom.net> --- scripts/kconfig/merge_config.sh | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 81b0c61..2ab91b9 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; -- 1.7.10.4
| |