]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
Correct argument parsing in rumprun
authorMartin Lucina <martin@lucina.net>
Thu, 20 Nov 2014 10:02:49 +0000 (11:02 +0100)
committerMartin Lucina <martin@lucina.net>
Thu, 20 Nov 2014 10:02:49 +0000 (11:02 +0100)
Signed-off-by: Martin Lucina <martin@lucina.net>
app-tools/rumprun

index 980ad5ecb1f4c6bd23d9f5cd8dcad67938e86313..53c7259864920f84514f4d304c1399445d54f3ed 100755 (executable)
@@ -192,6 +192,7 @@ run_xen() {
        # Remaining arguments belong to the application.
        shift $((OPTIND-1))
        [ "$1" = "--" ] && shift
+       [ $# -lt 1 ] && usage
        name=${opt_name:-rumprun-$(basename $1)}
        app=$(realpath $1)
        shift