diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 19:15:27 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 19:15:27 -0300 |
commit | 22f69693ac8959a79f74a4afc1977954e24b57f3 (patch) | |
tree | a9e77f25614121987c6f4c4965498d20fbb69686 /kvmx-create | |
parent | fa127ddcfdd083ef4f588186a1208795eba6c110 (diff) | |
download | kvmx-22f69693ac8959a79f74a4afc1977954e24b57f3.tar.gz kvmx-22f69693ac8959a79f74a4afc1977954e24b57f3.tar.bz2 |
Fix conditional
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" |