Skip to content

Commit 157b27d

Browse files
committed
Update version retrieval method in download.sh
1 parent ffe497f commit 157b27d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/dist/download.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ else
9191
curl -O $retry "$CODECOV_URL"
9292
say "$g==>$x Finishing downloading $b${CODECOV_OS}:${CODECOV_VERSION}$x"
9393

94-
v_url="https://cli.codecov.io/api/${CODECOV_OS}/${CODECOV_VERSION}"
95-
v=$(curl $retry --retry-all-errors -s "$v_url" -H "Accept:application/json" | tr \{ '\n' | tr , '\n' | tr \} '\n' | grep "\"version\"" | awk -F'"' '{print $4}' | tail -1)
94+
v=$(codecov --version 2>&1 | awk -F', version ' '{print $2}' || echo "unknown")
9695
say " Version: $b$v$x"
9796
say " "
9897
fi

0 commit comments

Comments
 (0)