TOKEN_HEADER quote fix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -456,7 +456,7 @@ check_update() {
|
||||
|
||||
# Check whether repository url is available
|
||||
#CURL_CHECK="curl -m 5 -s -o /dev/null -w "%{http_code}" https://$REPOSITORY_URL/v2/"
|
||||
CURL_CHECK='curl -m 5 -s -o /dev/null -I "'$TOKEN_HEADER'" -w "%{http_code}" '"$REMOTE_URL"
|
||||
CURL_CHECK='curl -m 5 -s -o /dev/null -I '"$TOKEN_HEADER"' -w "%{http_code}" '"$REMOTE_URL"
|
||||
CURL_CHECK_CODE=$(eval $CURL_CHECK)
|
||||
|
||||
# if valid accessible url
|
||||
@@ -465,7 +465,7 @@ check_update() {
|
||||
|
||||
#digest=$(curl --silent -H "Accept: application/vnd.docker.distribution.manifest.v2+json" "$REMOTE_URL" | jq -r '.config.digest');
|
||||
# Digest for the whole manifest, which includes all architectures.
|
||||
CURL_DIGEST=$(echo 'curl -s -I "'$TOKEN_HEADER'" -H "Accept: application/vnd.oci.image.index.v1+json" "'$REMOTE_URL'" | grep -i Docker-Content-Digest' | cut -d ' ' -f2 | tr -d '\r\n')
|
||||
CURL_DIGEST=$(echo 'curl -s -I '"$TOKEN_HEADER"' -H "Accept: application/vnd.oci.image.index.v1+json" "'$REMOTE_URL'" | grep -i Docker-Content-Digest' | cut -d ' ' -f2 | tr -d '\r\n')
|
||||
digest=$(eval $CURL_DIGEST)
|
||||
|
||||
#debug "docker images -q --no-trunc $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION";
|
||||
|
Reference in New Issue
Block a user