mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Make sure the VM directory is created before anything is downloaded
This commit is contained in:
parent
945160abe6
commit
1b1197239c
1 changed files with 4 additions and 3 deletions
7
quickget
7
quickget
|
@ -399,8 +399,8 @@ function get_freebsd() {
|
||||||
URL="${DL_BASE}/${VERSION}/FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso"
|
URL="${DL_BASE}/${VERSION}/FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso"
|
||||||
|
|
||||||
ISO="FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso"
|
ISO="FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso"
|
||||||
web_get ${URL} ${VM_PATH}
|
|
||||||
make_vm_dir
|
make_vm_dir
|
||||||
|
web_get ${URL} ${VM_PATH}
|
||||||
make_vm_config ${ISO}
|
make_vm_config ${ISO}
|
||||||
start_vm_info
|
start_vm_info
|
||||||
}
|
}
|
||||||
|
@ -432,6 +432,8 @@ function get_fedora() {
|
||||||
URL=$(echo ${FEDORA_RELEASE} | jq -r '.link')
|
URL=$(echo ${FEDORA_RELEASE} | jq -r '.link')
|
||||||
SHA256SUM=$(echo ${FEDORA_RELEASE} | jq -r '.sha256')
|
SHA256SUM=$(echo ${FEDORA_RELEASE} | jq -r '.sha256')
|
||||||
|
|
||||||
|
make_vm_dir
|
||||||
|
|
||||||
web_get ${URL} ${VM_PATH}
|
web_get ${URL} ${VM_PATH}
|
||||||
|
|
||||||
echo "Checking SHA256SUMS..."
|
echo "Checking SHA256SUMS..."
|
||||||
|
@ -443,8 +445,7 @@ function get_fedora() {
|
||||||
echo "All good."
|
echo "All good."
|
||||||
fi
|
fi
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
make_vm_dir
|
|
||||||
make_vm_config ${ISO}
|
make_vm_config ${ISO}
|
||||||
start_vm_info
|
start_vm_info
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue