From 561f588d1d0016615aa646bc22aefe5dafc41d77 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 19 Feb 2016 18:19:02 +0100 Subject: [PATCH] Use proper quoting around variables. --- qubes-rpc/qvm-run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qubes-rpc/qvm-run b/qubes-rpc/qvm-run index 0997e61..5bc50e3 100755 --- a/qubes-rpc/qvm-run +++ b/qubes-rpc/qvm-run @@ -40,10 +40,10 @@ if [ $# -lt 2 ] ; then exit 1 fi -VMNAME=$1 +VMNAME="$1" shift -if [ $VMNAME = "--dispvm" ] ; then +if [ "$VMNAME" = "--dispvm" ] ; then VMNAME='$dispvm' fi -exec /usr/lib/qubes/qrexec-client-vm $VMNAME qubes.VMShell "/usr/lib/qubes/qrun-in-vm" "$@" +exec /usr/lib/qubes/qrexec-client-vm "$VMNAME" qubes.VMShell "/usr/lib/qubes/qrun-in-vm" "$@"