qvm-run-vm: add +WaitForSession for modern @dispvm syntax too

This commit is contained in:
Rusty Bird 2020-05-06 14:46:13 +00:00
parent f023afdaa0
commit 5c7d06b46e
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

@ -31,7 +31,8 @@ this tool does not propagate standard error or exit codes, nor does it offer
protection against the remote VM messing with your terminal if standard output protection against the remote VM messing with your terminal if standard output
is your terminal. is your terminal.
You can use \$dispvm or --dispvm instead of vmname to start a new DisposableVM. You can use @dispvm or \$dispvm or --dispvm instead of vmname to start a new
DisposableVM.
USAGE USAGE
} }
@ -51,7 +52,7 @@ elif [ "$VMNAME" = "" ] ; then
fi fi
service="qubes.VMShell" service="qubes.VMShell"
case "$VMNAME" in \$dispvm|\$dispvm:*) case "$VMNAME" in [@$]dispvm|[@$]dispvm:*)
service="$service+WaitForSession" service="$service+WaitForSession"
esac esac