소스 검색

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;