Skip to content

Commit

Permalink
fix: overload version
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 22, 2025
1 parent 1709cb9 commit a1eba21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ then
fi
elif [ "$CC_USE_PYPI" == "true" ];
then
if ! pip install codecov-cli; then
if ! pip install codecov-cli"$([ "$CC_VERSION" == "latest" ] && echo "" || echo "==$CC_VERSION" )"; then
exit_if_error "Could not install via pypi."
exit
fi
Expand Down Expand Up @@ -124,6 +124,7 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
fi
say "$g==>$x CLI integrity verified"
say
chmod +x "$cc_command"
fi
if [ -n "$CC_BINARY_LOCATION" ];
then
Expand Down Expand Up @@ -245,7 +246,6 @@ else
fi
unset NODE_OPTIONS
# See https://github.com/codecov/uploader/issues/475
chmod +x "$cc_command"
say "$g==>$x Running $CC_RUN_COMMAND"
say " $b$cc_command $(echo "${cc_cli_args[@]}")$CC_RUN_COMMAND$token_str $(echo "${cc_args[@]}")$x"
if ! $cc_command \
Expand Down
2 changes: 1 addition & 1 deletion scripts/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ then
fi
elif [ "$CODECOV_USE_PYPI" == "true" ];
then
if ! pip install codecov-cli; then
if ! pip install codecov-cli"$([ "$CODECOV_VERSION" == "latest" ] && echo "" || echo "==$CODECOV_VERSION" )"; then
exit_if_error "Could not install via pypi."
exit
fi
Expand Down
2 changes: 0 additions & 2 deletions scripts/run_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ fi
unset NODE_OPTIONS
# See https://github.com/codecov/uploader/issues/475

chmod +x "$codecov_command"

say "$g==>$x Running $CODECOV_RUN_COMMAND"
say " $b$codecov_command $(echo "${codecov_cli_args[@]}")$CODECOV_RUN_COMMAND$token_str $(echo "${codecov_args[@]}")$x"
if ! $codecov_command \
Expand Down
1 change: 1 addition & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ else
fi
say "$g==>$x CLI integrity verified"
say
chmod +x "$codecov_command"
fi

if [ -n "$CODECOV_BINARY_LOCATION" ];
Expand Down

0 comments on commit a1eba21

Please sign in to comment.