Add double quotes for path with spaces

This commit is contained in:
Guillaume 2019-10-18 18:00:04 +11:00
parent 4ad32c64a6
commit 43304de2ca

View File

@ -20,9 +20,8 @@ fi
VM=$1
HOST=$2
govc vm.power -off $NOVIT_VM_FOLDER/$VM || true
govc vm.power -off "$NOVIT_VM_FOLDER/$VM" || true
sleep 5
curl localhost:7606/hosts/$HOST/boot.iso | govc datastore.upload - $NOVIT_ISO_FOLDER/$VM.iso
curl localhost:7606/hosts/$HOST/boot.iso | govc datastore.upload - "$NOVIT_ISO_FOLDER/$VM.iso"
sleep 5
govc vm.power -on $NOVIT_VM_FOLDER/$VM
govc vm.power -on "$NOVIT_VM_FOLDER/$VM"