feat: Change show_iso_url variable to just="show"
This commit is contained in:
parent
a71c9e107b
commit
3ea219264b
10
quickget
10
quickget
|
@ -1244,7 +1244,7 @@ function web_get() {
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# Test mode for ISO
|
# Test mode for ISO
|
||||||
if [ "${show_iso_url}" == 'on' ]; then
|
if [ "${just}" == 'show' ]; then
|
||||||
echo "${URL}"
|
echo "${URL}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${just}" == 'test' ]; then
|
elif [ "${just}" == 'test' ]; then
|
||||||
|
@ -1308,7 +1308,7 @@ function zsync_get() {
|
||||||
local OUT=""
|
local OUT=""
|
||||||
local URL="${1}"
|
local URL="${1}"
|
||||||
# Test mode for ISO
|
# Test mode for ISO
|
||||||
if [ "${show_iso_url}" == 'on' ]; then
|
if [ "${just}" == 'show' ]; then
|
||||||
echo "${URL}"
|
echo "${URL}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${just}" == 'test' ]; then
|
elif [ "${just}" == 'test' ]; then
|
||||||
|
@ -2135,7 +2135,7 @@ 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 [ "${just}" == 'show' ]; 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 [ "${just}" == 'test' ]; then
|
elif [ "${just}" == 'test' ]; then
|
||||||
|
@ -3296,7 +3296,7 @@ function download_windows_workstation() {
|
||||||
|
|
||||||
if echo "$iso_download_link_html" | grep -q "We are unable to complete your request at this time."; then
|
if echo "$iso_download_link_html" | grep -q "We are unable to complete your request at this time."; then
|
||||||
echo " - Microsoft blocked the automated download request based on your IP address."
|
echo " - Microsoft blocked the automated download request based on your IP address."
|
||||||
if [ "${show_iso_url}" == 'on' ] || [ "${just}" == 'test' ]; then
|
if [ "${just}" == 'show' ] || [ "${just}" == 'test' ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
failed=1
|
failed=1
|
||||||
|
@ -3321,7 +3321,7 @@ function download_windows_workstation() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${show_iso_url}" == 'on' ]; then
|
if [ "${just}" == 'show' ]; then
|
||||||
echo -e " Windows ${RELEASE} Download (valid for 24 hours):\n${iso_download_link}"
|
echo -e " Windows ${RELEASE} Download (valid for 24 hours):\n${iso_download_link}"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ "${just}" == 'test' ]; then
|
elif [ "${just}" == 'test' ]; then
|
||||||
|
|
Loading…
Reference in New Issue