瀏覽代碼

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>
Olof Johansson 10 年之前
父節點
當前提交
09950bc256
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      scripts/kconfig/merge_config.sh

+ 5 - 0
scripts/kconfig/merge_config.sh

@@ -77,6 +77,11 @@ while true; do
 	esac
 done
 
+if [ "$#" -lt 2 ] ; then
+	usage
+	exit
+fi
+
 INITFILE=$1
 shift;