From bea5fce59d4c01d19f995a45659fddd7d7e42793 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 13 Jun 2018 19:17:58 -0300 Subject: Another conditional fix --- kvmx-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3