aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:17:58 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:17:58 -0300
commitbea5fce59d4c01d19f995a45659fddd7d7e42793 (patch)
treebcdffd633580b3e0d14abfcc9cc6a7e21fcf9452
parent22f69693ac8959a79f74a4afc1977954e24b57f3 (diff)
downloadkvmx-bea5fce59d4c01d19f995a45659fddd7d7e42793.tar.gz
kvmx-bea5fce59d4c01d19f995a45659fddd7d7e42793.tar.bz2
Another conditional fix
-rwxr-xr-xkvmx-create2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create
index 171c670..4c1ee0b 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -233,7 +233,7 @@ function kvmx_create_custom {
kvmx_install_package $req
done
- if [ ! -z "$image_type" ] || [ "$image_type" == "file" ]; then
+ if [ -z "$image_type" ] || [ "$image_type" == "file" ]; then
echo "Creating image file..."
#kvmx_sudo_run dd if=/dev/zero of=$image bs=$size count=1
kvmx_sudo_run qemu-img create -f raw $image $size