Use proper quoting around variables.

This commit is contained in:
Andrew 2016-02-19 18:19:02 +01:00
parent 17d274ef48
commit 561f588d1d

View File

@ -40,10 +40,10 @@ if [ $# -lt 2 ] ; then
exit 1 exit 1
fi fi
VMNAME=$1 VMNAME="$1"
shift shift
if [ $VMNAME = "--dispvm" ] ; then if [ "$VMNAME" = "--dispvm" ] ; then
VMNAME='$dispvm' VMNAME='$dispvm'
fi 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" "$@"