From 1b1197239c55db2b20b78c2f727e5051f0b00a9e Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Fri, 15 Oct 2021 01:44:43 +0100 Subject: [PATCH] Make sure the VM directory is created before anything is downloaded --- quickget | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index f2bcac5..fe7d443 100755 --- a/quickget +++ b/quickget @@ -399,8 +399,8 @@ function get_freebsd() { URL="${DL_BASE}/${VERSION}/FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso" ISO="FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso" - web_get ${URL} ${VM_PATH} make_vm_dir + web_get ${URL} ${VM_PATH} make_vm_config ${ISO} start_vm_info } @@ -432,6 +432,8 @@ function get_fedora() { URL=$(echo ${FEDORA_RELEASE} | jq -r '.link') SHA256SUM=$(echo ${FEDORA_RELEASE} | jq -r '.sha256') + make_vm_dir + web_get ${URL} ${VM_PATH} echo "Checking SHA256SUMS..." @@ -443,8 +445,7 @@ function get_fedora() { echo "All good." fi cd .. - - make_vm_dir + make_vm_config ${ISO} start_vm_info }