提交 09950bc2 编写于 作者: O Olof Johansson 提交者: Michal Marek

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: NOlof Johansson <olof@lixom.net>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 6341e62b
......@@ -77,6 +77,11 @@ while true; do
esac
done
if [ "$#" -lt 2 ] ; then
usage
exit
fi
INITFILE=$1
shift;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册