Skip to content

Commit a1eba21

Browse files
fix: overload version
1 parent 1709cb9 commit a1eba21

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

dist/codecov.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ then
5959
fi
6060
elif [ "$CC_USE_PYPI" == "true" ];
6161
then
62-
if ! pip install codecov-cli; then
62+
if ! pip install codecov-cli"$([ "$CC_VERSION" == "latest" ] && echo "" || echo "==$CC_VERSION" )"; then
6363
exit_if_error "Could not install via pypi."
6464
exit
6565
fi
@@ -124,6 +124,7 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
124124
fi
125125
say "$g==>$x CLI integrity verified"
126126
say
127+
chmod +x "$cc_command"
127128
fi
128129
if [ -n "$CC_BINARY_LOCATION" ];
129130
then
@@ -245,7 +246,6 @@ else
245246
fi
246247
unset NODE_OPTIONS
247248
# See https://github.com/codecov/uploader/issues/475
248-
chmod +x "$cc_command"
249249
say "$g==>$x Running $CC_RUN_COMMAND"
250250
say " $b$cc_command $(echo "${cc_cli_args[@]}")$CC_RUN_COMMAND$token_str $(echo "${cc_args[@]}")$x"
251251
if ! $cc_command \

scripts/download.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ then
1111
fi
1212
elif [ "$CODECOV_USE_PYPI" == "true" ];
1313
then
14-
if ! pip install codecov-cli; then
14+
if ! pip install codecov-cli"$([ "$CODECOV_VERSION" == "latest" ] && echo "" || echo "==$CODECOV_VERSION" )"; then
1515
exit_if_error "Could not install via pypi."
1616
exit
1717
fi

scripts/run_command.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ fi
1616
unset NODE_OPTIONS
1717
# See https://github.com/codecov/uploader/issues/475
1818

19-
chmod +x "$codecov_command"
20-
2119
say "$g==>$x Running $CODECOV_RUN_COMMAND"
2220
say " $b$codecov_command $(echo "${codecov_cli_args[@]}")$CODECOV_RUN_COMMAND$token_str $(echo "${codecov_args[@]}")$x"
2321
if ! $codecov_command \

scripts/validate.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ else
3131
fi
3232
say "$g==>$x CLI integrity verified"
3333
say
34+
chmod +x "$codecov_command"
3435
fi
3536

3637
if [ -n "$CODECOV_BINARY_LOCATION" ];

0 commit comments

Comments
 (0)