Skip to content

Commit

Permalink
Merge pull request #35 from codecov/th/fix-version-url
Browse files Browse the repository at this point in the history
fix: use new URL for versioning
  • Loading branch information
thomasrockhu-codecov authored Dec 5, 2024
2 parents a0812db + 49ba7df commit b77827c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
CC_WRAPPER_VERSION="0.0.29"
CC_WRAPPER_VERSION="0.0.30"
set +u
say() {
echo -e "$1"
Expand Down Expand Up @@ -86,7 +86,7 @@ else
say "$g ->$x Downloading $b${cc_url}$x"
curl -Os "$cc_url"
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
version_url="https://cli.codecov.io/api/${cc_os}/${CC_VERSION}"
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
say " Version: $b$version$x"
say " "
Expand Down
2 changes: 1 addition & 1 deletion scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else
curl -Os "$codecov_url"
say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"

version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
version_url="https://cli.codecov.io/api/${codecov_os}/${CODECOV_VERSION}"
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
say " Version: $b$version$x"
say " "
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/usr/bin/env bash
CODECOV_WRAPPER_VERSION="0.0.29"
CODECOV_WRAPPER_VERSION="0.0.30"

0 comments on commit b77827c

Please sign in to comment.