Commit dab41865 authored by Ivan A. Melnikov's avatar Ivan A. Melnikov Committed by Michael Shigorin

build-vm: proper cleanup for *.img

We should delete the tarball whenever it's not the target.
parent 7f1ec09c
......@@ -39,7 +39,10 @@ prepare-image: check-sudo
convert-image: prepare-image
@VM_COMPRESS=; \
case "$(IMAGE_TYPE)" in \
"img") mv "$(VM_RAWDISK)" "$(IMAGE_OUTPATH)"; exit 0;; \
"img") \
mv "$(VM_RAWDISK)" "$(IMAGE_OUTPATH)"; \
if [ "0$(DEBUG)" -le 1 ]; then rm "$(VM_TARBALL)"; fi; \
exit 0;; \
"vhd") VM_FORMAT="vpc";; \
"qcow2c") VM_FORMAT="qcow2"; VM_COMPRESS="-c";; \
*) VM_FORMAT="$(IMAGE_TYPE)"; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment