feat: Change download_iso variable to just="download"
This commit is contained in:
parent
a885ed5b6f
commit
983c6af8a6
10
quickget
10
quickget
|
@ -1296,7 +1296,7 @@ function check_hash() {
|
||||||
local iso=""
|
local iso=""
|
||||||
local hash=""
|
local hash=""
|
||||||
local hash_algo=""
|
local hash_algo=""
|
||||||
if [ "${download_iso}" == "on" ]; then
|
if [ "${just}" == 'download' ]; then
|
||||||
iso="${1}"
|
iso="${1}"
|
||||||
else
|
else
|
||||||
iso="${VM_PATH}/${1}"
|
iso="${VM_PATH}/${1}"
|
||||||
|
@ -1357,7 +1357,7 @@ function web_get() {
|
||||||
elif [ "${test_iso_url}" == 'on' ]; then
|
elif [ "${test_iso_url}" == 'on' ]; then
|
||||||
wget --spider "${URL}"
|
wget --spider "${URL}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${download_iso}" == 'on' ]; then
|
elif [ "${just}" == 'download' ]; then
|
||||||
DIR="$(pwd)"
|
DIR="$(pwd)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1459,7 +1459,7 @@ function make_vm_config() {
|
||||||
local IMAGE_TYPE=""
|
local IMAGE_TYPE=""
|
||||||
local GUEST=""
|
local GUEST=""
|
||||||
local SEC_BOOT=""
|
local SEC_BOOT=""
|
||||||
if [ "${download_iso}" == "on" ]; then
|
if [ "${just}" == 'download' ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
IMAGE_FILE="${1}"
|
IMAGE_FILE="${1}"
|
||||||
|
@ -2249,7 +2249,7 @@ function get_macos() {
|
||||||
wget --spider --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}" "${downloadLink}"
|
wget --spider --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}" "${downloadLink}"
|
||||||
wget --spider --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}" "${chunkListLink}"
|
wget --spider --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}" "${chunkListLink}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${download_iso}" == 'on' ]; then
|
elif [ "${just}" == 'download' ]; then
|
||||||
echo "Downloading macOS ${RELEASE} from ${downloadLink}"
|
echo "Downloading macOS ${RELEASE} from ${downloadLink}"
|
||||||
web_get "${downloadLink}" "${VM_PATH}" RecoveryImage.dmg --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}"
|
web_get "${downloadLink}" "${VM_PATH}" RecoveryImage.dmg --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}"
|
||||||
web_get "${chunkListLink}" RecoveryImage.chunklist --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}"
|
web_get "${chunkListLink}" RecoveryImage.chunklist --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${chunkListSession}"
|
||||||
|
@ -3461,7 +3461,7 @@ function get_windows() {
|
||||||
download_windows_workstation "${RELEASE}"
|
download_windows_workstation "${RELEASE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${download_iso}" == 'on' ]; then
|
if [ "${just}" == 'download' ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue