From 983c6af8a6ceb9ab7bd22aa91734feab9a373d08 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Sat, 20 Apr 2024 23:41:24 +0200 Subject: [PATCH] feat: Change download_iso variable to just="download" --- quickget | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/quickget b/quickget index 9a1cc49..7b8c684 100755 --- a/quickget +++ b/quickget @@ -1296,7 +1296,7 @@ function check_hash() { local iso="" local hash="" local hash_algo="" - if [ "${download_iso}" == "on" ]; then + if [ "${just}" == 'download' ]; then iso="${1}" else iso="${VM_PATH}/${1}" @@ -1357,7 +1357,7 @@ function web_get() { elif [ "${test_iso_url}" == 'on' ]; then wget --spider "${URL}" exit 0 - elif [ "${download_iso}" == 'on' ]; then + elif [ "${just}" == 'download' ]; then DIR="$(pwd)" fi @@ -1459,7 +1459,7 @@ function make_vm_config() { local IMAGE_TYPE="" local GUEST="" local SEC_BOOT="" - if [ "${download_iso}" == "on" ]; then + if [ "${just}" == 'download' ]; then exit 0 fi 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=${chunkListSession}" "${chunkListLink}" exit 0 - elif [ "${download_iso}" == 'on' ]; then + elif [ "${just}" == 'download' ]; then 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 "${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}" fi - if [ "${download_iso}" == 'on' ]; then + if [ "${just}" == 'download' ]; then exit 0 fi