chore: Change tabs to spaces

This commit is contained in:
zen0bit 2024-04-21 00:29:12 +02:00 committed by Martin Wimpress
parent 158bbf36c4
commit d7cbf04f47
1 changed files with 11 additions and 11 deletions

View File

@ -781,7 +781,7 @@ function releases_antix() {
} }
function editions_antix() { function editions_antix() {
echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit echo net-sysv core-sysv base-sysv full-sysv net-runit core-runit base-runit full-runit
} }
function releases_archcraft() { function releases_archcraft() {
@ -1439,13 +1439,13 @@ function web_get() {
shift shift
fi fi
done done
# Test mode for ISO # Test mode for ISO
if [ "${show_iso_url}" == 'on' ]; then if [ "${show_iso_url}" == 'on' ]; then
echo "${URL}" echo "${URL}"
exit 0 exit 0
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 [ "${download_iso}" == 'on' ]; then
DIR="$(pwd)" DIR="$(pwd)"
fi fi
@ -2335,13 +2335,13 @@ function get_macos() {
local chunkListLink=$(echo "$info" | grep 'oscdn' | grep 'chunklist') local chunkListLink=$(echo "$info" | grep 'oscdn' | grep 'chunklist')
local chunkListSession=$(echo "$info" | grep 'expires' | grep 'chunklist') local chunkListSession=$(echo "$info" | grep 'expires' | grep 'chunklist')
if [ "${show_iso_url}" == 'on' ]; then if [ "${show_iso_url}" == 'on' ]; then
echo -e "Recovery URL (inaccessible through normal browser):\n${downloadLink}\nChunklist (used for verifying the Recovery Image):\n${chunkListLink}\nFirmware URLs:\n${OpenCore_qcow2}\n${OVMF_CODE}\n${OVMF_VARS}" echo -e "Recovery URL (inaccessible through normal browser):\n${downloadLink}\nChunklist (used for verifying the Recovery Image):\n${chunkListLink}\nFirmware URLs:\n${OpenCore_qcow2}\n${OVMF_CODE}\n${OVMF_VARS}"
exit 0 exit 0
elif [ "${test_iso_url}" == 'on' ]; then elif [ "${test_iso_url}" == 'on' ]; then
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 [ "${download_iso}" == 'on' ]; 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}"