Skip to content

Commit

Permalink
Fixed base64 encoding of current version
Browse files Browse the repository at this point in the history
  • Loading branch information
PackeTsar authored Jan 28, 2023
1 parent 434a07e commit 9577ad9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ GITLABHOSTNAME=${1:?"missing arg 1 for GITLABHOSTNAME"}
GITLABTOKEN=${2:?"missing arg 2 for GITLABTOKEN"}

# Grab the Base64 encoded current version info from Gitlab instance
GITLABBASE64VER=$(curl --header "PRIVATE-TOKEN: $GITLABTOKEN" https://$GITLABHOSTNAME/api/v4/version 2> /dev/null | base64)
GITLABBASE64VER=$(curl --header "PRIVATE-TOKEN: $GITLABTOKEN" https://$GITLABHOSTNAME/api/v4/version 2> /dev/null | base64 -w 0)

# Request the status of this software version from version.gitlab.com and get the text from the HTML response
GITLABRESPONSE=$(curl "https://version.gitlab.com/check.svg?gitlab_info=$GITLABBASE64VER" -H "Referer: https://$GITLABHOSTNAME/" 2> /dev/null | \
Expand Down

0 comments on commit 9577ad9

Please sign in to comment.