mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user