mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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:
parent
7a6620b5eb
commit
51063c1e6a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user