From 08bb8f7684a2b773f33aac3bd3e81e8e2f23c50b Mon Sep 17 00:00:00 2001 From: Jan Orel Date: Thu, 20 Jul 2023 19:45:54 +0200 Subject: [PATCH] L #-: Add quotes (#2680) (cherry picked from commit e8167ea54974e7572d5fe02417ca24b2ba35abdb) --- src/vmm_mad/remotes/kvm/migrate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmm_mad/remotes/kvm/migrate b/src/vmm_mad/remotes/kvm/migrate index 4b1e92c2f4e..c45c21b36f6 100755 --- a/src/vmm_mad/remotes/kvm/migrate +++ b/src/vmm_mad/remotes/kvm/migrate @@ -76,10 +76,10 @@ create_target_disk_img() { local DEST_HOST=$1 local QEMU_IMG_PATH="$2" local SIZE="$3" - local DISK_DIR=$(dirname $QEMU_IMG_PATH) + local DISK_DIR="$(dirname $QEMU_IMG_PATH)" ssh_monitor_and_log "$DEST_HOST" \ - "mkdir -p $DISK_DIR && qemu-img create -f qcow2 '$QEMU_IMG_PATH' '$SIZE'" \ + "mkdir -p '$DISK_DIR' && qemu-img create -f qcow2 '$QEMU_IMG_PATH' '$SIZE'" \ "Failed to create new qcow image for $QEMU_IMG_PATH" }