Use proper quoting around variables.

(cherry picked from commit 561f588d1d)
This commit is contained in:
Andrew 2016-02-19 18:19:02 +01:00 committed by Marek Marczykowski-Górecki
parent 1cbe42c52b
commit 4eff6a42e9
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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" "$@"