Update redpill_tool_chain.sh

Added the -k switch to curl because the certificate has expired and curl refuses to upload files.
This commit is contained in:
SpectreKr 2021-11-06 21:19:04 +03:00 committed by GitHub
parent 0280a67382
commit 343ee7363c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,7 @@ function __ext_add(){
fi
echo "Downloading"
curl --progress-bar --location ${URL} --output ${MRP_TMP_IDX}
curl -k --progress-bar --location ${URL} --output ${MRP_TMP_IDX}
ext_json=$(cat ${MRP_TMP_IDX})
ext_id=$(getValueByJsonPath ".id" "${ext_json}")
@ -167,7 +167,7 @@ function downloadFromUrlIfNotExists(){
local MSG="${3}"
if [ ! -e ${OUT_FILE} ]; then
echo "Downloading ${MSG}"
curl --progress-bar --location ${DOWNLOAD_URL} --output ${OUT_FILE}
curl -k --progress-bar --location ${DOWNLOAD_URL} --output ${OUT_FILE}
fi
}