Browse Source

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 năm trước cách đây
mục cha
commit
09950bc256
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      scripts/kconfig/merge_config.sh

+ 5 - 0
scripts/kconfig/merge_config.sh

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