The parser incorrectly treated anything less than 2 args as an error.
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
usage() {
cat <<EOF
- $0 <openvt arguments> -- <weston options>
+ $0 [<openvt arguments>] [-- <weston options>]
EOF
}
openvt_args="$openvt_args $1"
}
-if test $# -lt 2; then
- usage
- exit 1
-fi
-
if [ -n "$WAYLAND_DISPLAY" ]; then
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
exit 1