chiark / gitweb /
blank-kvm-image: strip .img if supplied
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 9 Sep 2010 17:22:58 +0000 (18:22 +0100)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Thu, 9 Sep 2010 17:22:58 +0000 (18:22 +0100)
blank-kvm-image

index 56c277e..ced9d52 100755 (executable)
@@ -1,3 +1,3 @@
 #! /bin/sh
 set -e
-kvm-img create -f qcow2 "$1.img" "${2}M"
+kvm-img create -f qcow2 "${1%.img}.img" "${2}"