]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: Fix weston-start to allow weston args without openvt args
authorTom Hochstein <tom.hochstein@nxp.com>
Mon, 18 Jul 2016 14:43:06 +0000 (09:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2016 22:46:56 +0000 (23:46 +0100)
The parser didn't properly handle commands of the form
weston-start -- <weston-options>.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/wayland/weston-init/weston-start

index 5b7604f9302bdad0c19d279d71b9d1bc59152b84..3508ae2c3391e2380b4161868ca92f61f4ed0f12 100755 (executable)
@@ -39,13 +39,12 @@ fi
 
 openvt_args=""
 while [ -n "$1" ]; do
-       openvt_args="$openvt_args $1"
-       shift
-
        if [ "$1" = "--" ]; then
                shift
                break
        fi
+       openvt_args="$openvt_args $1"
+       shift
 done
 
 weston_args=$*