From ec7f1f2912f42c50d5d8c6465e08713b7319edde Mon Sep 17 00:00:00 2001 From: Neilpang Date: Tue, 12 Dec 2023 02:04:29 +0000 Subject: [PATCH] Update from base builder --- build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 0771387..ccc23a6 100644 --- a/build.sh +++ b/build.sh @@ -104,11 +104,10 @@ if [ "$VM_ISO_LINK" ]; then done elif [ "$VM_VHD_LINK" ]; then - if [ ! -e "$osname.qcow2.xz" ]; then - $vmsh download "$VM_VHD_LINK" $osname.qcow2.xz - fi - if [ ! -e "$osname.qcow2" ]; then + if [ ! -e "$osname.qcow2.xz" ]; then + $vmsh download "$VM_VHD_LINK" $osname.qcow2.xz + fi xz -d -T 0 --verbose "$osname.qcow2.xz" fi