TOKEN was added to curl code check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-03-28 15:28:27 +01:00
parent 3325ffeda0
commit 541ecbbd5e

View File

@@ -456,7 +456,7 @@ check_update() {
# Check whether repository url is available # 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 -w "%{http_code}" https://$REPOSITORY_URL/v2/"
CURL_CHECK='curl -m 5 -s -o /dev/null -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) CURL_CHECK_CODE=$(eval $CURL_CHECK)
# if valid accessible url # if valid accessible url