style: make shellcheck happier

This commit is contained in:
Martin Wimpress 2024-04-28 22:33:19 +01:00 committed by Martin Wimpress
parent 8a1eb9d5dc
commit ba5bac7a81
1 changed files with 3 additions and 3 deletions

View File

@ -480,7 +480,7 @@ function list_check_all() {
validate_release releases_"${OS}" validate_release releases_"${OS}"
URL=$(get_"${OS}" | cut_1 | head -1) URL=$(get_"${OS}" | cut_1 | head -1)
CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL') CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL')
show_test_result ${CHECK} "${OS}" "${RELEASE}" "${EDITION}" "${URL}" show_test_result "${CHECK}" "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
done done
else else
if [[ "${OS}" == "windows"* ]]; then if [[ "${OS}" == "windows"* ]]; then
@ -502,7 +502,7 @@ function list_check_all() {
validate_release releases_"${OS}" validate_release releases_"${OS}"
URL=$(get_"${OS}" | cut_1 | head -1) URL=$(get_"${OS}" | cut_1 | head -1)
CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL') CHECK=$(web_check "${URL}" && echo 'PASS' || echo 'FAIL')
show_test_result ${CHECK} "${OS}" "${RELEASE}" "${EDITION}" "${URL}" show_test_result "${CHECK}" "${OS}" "${RELEASE}" "${EDITION}" "${URL}"
fi fi
fi fi
done done
@ -2094,7 +2094,7 @@ function get_macos() {
exit 0 exit 0
elif [ "${OPERATION}" == "test" ]; then elif [ "${OPERATION}" == "test" ]; then
local CHECK=$(web_check "${downloadLink}" --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}" && echo 'PASS' || echo 'FAIL') local CHECK=$(web_check "${downloadLink}" --header "Host: oscdn.apple.com" --header "Connection: close" --header "User-Agent: InternetRecovery/1.0" --header "Cookie: AssetToken=${downloadSession}" && echo 'PASS' || echo 'FAIL')
show_test_result ${CHECK} "${OS}" "${RELEASE}" "" "${downloadLink}" show_test_result "${CHECK}" "${OS}" "${RELEASE}" "" "${downloadLink}"
exit 0 exit 0
elif [ "${OPERATION}" == "download" ]; then elif [ "${OPERATION}" == "download" ]; then
echo "Downloading macOS ${RELEASE} from ${downloadLink}" echo "Downloading macOS ${RELEASE} from ${downloadLink}"