mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-31 01:47:11 +03:00
L #-: Add quotes (#2680)
(cherry picked from commit e8167ea54974e7572d5fe02417ca24b2ba35abdb)
This commit is contained in:
parent
5af31298e5
commit
08bb8f7684
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user