From f51511bd1375e374b7e74e0c4e5ae9465c1e8881 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 1 Jul 2021 15:13:24 -0400 Subject: [PATCH] build and deploy --- Scripts/download_framework.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/download_framework.sh b/Scripts/download_framework.sh index a9660d7f..7cc48bc2 100755 --- a/Scripts/download_framework.sh +++ b/Scripts/download_framework.sh @@ -47,7 +47,7 @@ fi #get local and remote checksums for comparison echo -e "Getting checksums..." echo -e "URL: ${URL}/api/storage/${REMOTEPATH}" -JSON=$(curl --header "X-JFrog-Art-Api: ${APITOKEN}" -X GET "${URL}/api/storage/${REMOTEPATH}") +JSON=$(curl --header "X-JFrog-Art-Api: ${ARTIFACTORY_APIKEY}" -X GET "${URL}/api/storage/${REMOTEPATH}") CHECKSUM=$(echo "$JSON" | python -c 'import sys, json; print json.load(sys.stdin)["checksums"]["sha1"]') if [[ -z "$CHECKSUM" ]]; then exit_with_error "No Checksum found in json: ${JSON}" @@ -65,7 +65,7 @@ echo "Local checksum ${OLDCHECKSUM}" if [ ! -e "${LOCALPATH}" ] || [ -z "$OLDCHECKSUM" ] || [ "$CHECKSUM" != "$OLDCHECKSUM" ]; then echo "Downloading..." echo -e "URL: ${URL}/${REMOTEPATH}" -curl --header "X-JFrog-Art-Api: ${APITOKEN}" -f -X GET "$URL/$REMOTEPATH" --output "${NEWFILEPATH}" +curl --header "X-JFrog-Art-Api: ${ARTIFACTORY_APIKEY}" -f -X GET "$URL/$REMOTEPATH" --output "${NEWFILEPATH}" if [ $? -eq 0 ] && [ -e "${NEWFILEPATH}" ]; then echo "Finished Downloading, begin unzip" unzip -q -o "${NEWFILEPATH}" -d "${LOCALDIR}"