mirror of https://gitee.com/openkylin/linux.git
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:
parent
6341e62b21
commit
09950bc256
|
@ -77,6 +77,11 @@ while true; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$#" -lt 2 ] ; then
|
||||||
|
usage
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
INITFILE=$1
|
INITFILE=$1
|
||||||
shift;
|
shift;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue