Skip to content

Commit b77827c

Browse files
Merge pull request #35 from codecov/th/fix-version-url
fix: use new URL for versioning
2 parents a0812db + 49ba7df commit b77827c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dist/codecov.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
CC_WRAPPER_VERSION="0.0.29"
2+
CC_WRAPPER_VERSION="0.0.30"
33
set +u
44
say() {
55
echo -e "$1"
@@ -86,7 +86,7 @@ else
8686
say "$g ->$x Downloading $b${cc_url}$x"
8787
curl -Os "$cc_url"
8888
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
89-
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
89+
version_url="https://cli.codecov.io/api/${cc_os}/${CC_VERSION}"
9090
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
9191
say " Version: $b$version$x"
9292
say " "

scripts/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ else
4242
curl -Os "$codecov_url"
4343
say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"
4444

45-
version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
45+
version_url="https://cli.codecov.io/api/${codecov_os}/${CODECOV_VERSION}"
4646
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
4747
say " Version: $b$version$x"
4848
say " "

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
CODECOV_WRAPPER_VERSION="0.0.29"
2+
CODECOV_WRAPPER_VERSION="0.0.30"

0 commit comments

Comments
 (0)