linting bash variables
authorkwadronaut <kwadronaut@leap.se>
Tue, 11 Feb 2014 11:40:25 +0000 (12:40 +0100)
committerkwadronaut <kwadronaut@leap.se>
Tue, 11 Feb 2014 11:40:25 +0000 (12:40 +0100)
destroy-vm.sh

index 5ea3ff8..9798ed3 100755 (executable)
@@ -45,8 +45,8 @@ dmsetup remove $VG-$vm--rootp2
 lvremove /dev/$VG/$vm-root
 lvremove /dev/$VG/$vm-swap
 
-rm /var/lib/libvirt/cloudinit/$vm-cloudinit_seed.img
-rm -v /var/lib/libvirt/cloudinit/$vm01
-rm -v /var/lib/libvirt/cloudinit/$vm00
+rm -v "/var/lib/libvirt/cloudinit/${vm}-cloudinit_seed.img"
+rm -v "/var/lib/libvirt/cloudinit/${vm}01"
+rm -v "/var/lib/libvirt/cloudinit/${vm}00"
 
 virsh undefine $vm