Jelajahi Sumber

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

Rusty Bird 4 tahun lalu
induk
melakukan
5c7d06b46e
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      qubes-rpc/qvm-run-vm

+ 3 - 2
qubes-rpc/qvm-run-vm

@@ -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
 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
 }
 
@@ -51,7 +52,7 @@ elif [ "$VMNAME" = "" ] ; then
 fi
 
 service="qubes.VMShell"
-case "$VMNAME" in \$dispvm|\$dispvm:*)
+case "$VMNAME" in [@$]dispvm|[@$]dispvm:*)
     service="$service+WaitForSession"
 esac