Message ID | 20230619144746.2672706-1-richard.purdie@linuxfoundation.org |
---|---|
State | Accepted, archived |
Commit | 5d4818e836747a83f55bad8a00a9d3cd6e80c5dc |
Headers | show |
Series | [1/2] scripts/runqemu-ifup: Fix extra parameter issue | expand |
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index bbd624596ed..e3aa16c97df 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup @@ -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
The third parameter was dropped in a previous commit but changes were not made to the argument checks. Fix this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> --- scripts/runqemu-ifup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)