aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:15:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 19:15:27 -0300
commit22f69693ac8959a79f74a4afc1977954e24b57f3 (patch)
treea9e77f25614121987c6f4c4965498d20fbb69686
parentfa127ddcfdd083ef4f588186a1208795eba6c110 (diff)
downloadkvmx-22f69693ac8959a79f74a4afc1977954e24b57f3.tar.gz
kvmx-22f69693ac8959a79f74a4afc1977954e24b57f3.tar.bz2
Fix conditional
-rwxr-xr-xkvmx-create2
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"