diff --git a/dist/codecov.sh b/dist/codecov.sh index fa85ec9..7adca6c 100755 --- a/dist/codecov.sh +++ b/dist/codecov.sh @@ -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" @@ -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 " " diff --git a/scripts/download.sh b/scripts/download.sh index e9586a0..0b26ef1 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -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 " " diff --git a/scripts/version.sh b/scripts/version.sh index d9ff3ea..f4d02fa 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -CODECOV_WRAPPER_VERSION="0.0.29" +CODECOV_WRAPPER_VERSION="0.0.30"