mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 08:22:12 +00:00
[mac OS] Set flags for curl invocations (#8008)
This commit is contained in:
committed by
GitHub
parent
67f9c37eee
commit
463cbf01cf
@@ -23,9 +23,9 @@ installOpenJDK() {
|
||||
|
||||
# Get link for Java binaries and Java version
|
||||
if [[ ${VENDOR_NAME} == "Temurin-Hotspot" ]]; then
|
||||
assetUrl=$(curl -s "https://api.adoptium.net/v3/assets/latest/${JAVA_VERSION}/hotspot")
|
||||
assetUrl=$(curl -fsSL "https://api.adoptium.net/v3/assets/latest/${JAVA_VERSION}/hotspot")
|
||||
elif [[ ${VENDOR_NAME} == "Adopt" ]]; then
|
||||
assetUrl=$(curl -s "https://api.adoptopenjdk.net/v3/assets/latest/${JAVA_VERSION}/hotspot")
|
||||
assetUrl=$(curl -fsSL "https://api.adoptopenjdk.net/v3/assets/latest/${JAVA_VERSION}/hotspot")
|
||||
else
|
||||
echo "${VENDOR_NAME} is invalid, valid names are: Temurin-Hotspot and Adopt"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user