scripts/runqemu-ifup: Fix extra parameter issue

The third parameter was dropped in a previous commit but changes were not made
to the argument checks. Fix this.

(From OE-Core rev: 5d4818e836747a83f55bad8a00a9d3cd6e80c5dc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2023-06-19 15:45:56 +01:00
parent 7a6620b5eb
commit 51063c1e6a

View File

@ -21,7 +21,7 @@
#
usage() {
echo "sudo $(basename $0) <uid> <gid> <native-sysroot-basedir>"
echo "sudo $(basename $0) <uid> <gid>"
}
if [ $EUID -ne 0 ]; then
@ -29,7 +29,7 @@ if [ $EUID -ne 0 ]; then
exit 1
fi
if [ $# -ne 3 ]; then
if [ $# -ne 2 ]; then
usage
exit 1
fi