Skip to content

Commit fc489c3

Browse files
committed
Update version retrieval method in download.sh
1 parent 1957758 commit fc489c3

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
@@ -97,8 +97,7 @@ else
9797
curl -O $retry "$CODECOV_URL"
9898
say "$g==>$x Finishing downloading $b${CODECOV_OS}:${CODECOV_VERSION}$x"
9999

100-
v_url="https://cli.codecov.io/api/${CODECOV_OS}/${CODECOV_VERSION}"
101-
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)
100+
v=$(codecov --version 2>&1 | awk -F', version ' '{print $2}' || echo "unknown")
102101
say " Version: $b$v$x"
103102
say " "
104103
fi

0 commit comments

Comments
 (0)