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>
This commit is contained in:
Olof Johansson
2014-12-11 12:55:03 -08:00
committed by Michal Marek
父節點 6341e62b21
當前提交 09950bc256

查看文件

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