undo shell install changes that MacOS doesn't like

This commit is contained in:
Jay Lee 2024-12-11 15:27:10 -08:00 committed by GitHub
parent 39e5a45d72
commit b38bf3e9bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,23 +120,23 @@ else
curl_opts=( "$GHCLIENT" ) curl_opts=( "$GHCLIENT" )
fi fi
echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..." echo_yellow "Checking GitHub URL $release_url for $gamversion GAM release ($check_type)..."
release_response=$(curl \ release_json=$(curl \
--silent \ --silent \
"${curl_opts[@]}" \ "${curl_opts[@]}" \
-H "Accept: application/vnd.github+json" \ -H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \ -H "X-GitHub-Api-Version: 2022-11-28" \
"$release_url" \ "$release_url" \
-w "%{http_code}" \ # -w "%{http_code}" \
2>&1 /dev/null) 2>&1 /dev/null)
response_status="${release_response: -3}" #response_status="${release_response: -3}"
release_json="${release_response:0:-4}" #release_json="${release_response:0:-4}"
if [ "$response_status" != "200" ]; then #if [ "$response_status" != "200" ]; then
echo_red "ERROR when retrieving ${release_url}:\n\n${release_json}" # echo_red "ERROR when retrieving ${release_url}:\n\n${release_json}"
exit # exit
else #else
echo_green "done" # echo_green "done"
fi #fi
echo_yellow "Getting file and download URL..." echo_yellow "Getting file and download URL..."
# Python is sadly the nearest to universal way to safely handle JSON with Bash # Python is sadly the nearest to universal way to safely handle JSON with Bash