diff options
Diffstat (limited to 'kvmx-create')
-rwxr-xr-x | kvmx-create | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx-create b/kvmx-create index 9ab7bb4..171c670 100755 --- a/kvmx-create +++ b/kvmx-create @@ -238,7 +238,7 @@ function kvmx_create_custom { #kvmx_sudo_run dd if=/dev/zero of=$image bs=$size count=1 kvmx_sudo_run qemu-img create -f raw $image $size device="`sudo losetup --find --show $image`" - else if [ -e "$image" ]; then + elif [ -e "$image" ]; then device="$image" else echo "$BASENAME: image device $image does not exist" |