TOKEN was added to curl code check
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
|
# 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
|
||||||
|
Reference in New Issue
Block a user