diff --git a/dist/codecov.sh b/dist/codecov.sh index 0662119..3ce8d88 100755 --- a/dist/codecov.sh +++ b/dist/codecov.sh @@ -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 @@ -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 @@ -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 \ diff --git a/scripts/download.sh b/scripts/download.sh index c3b8a50..3730f67 100755 --- a/scripts/download.sh +++ b/scripts/download.sh @@ -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 diff --git a/scripts/run_command.sh b/scripts/run_command.sh index 2655bb4..59a6b35 100755 --- a/scripts/run_command.sh +++ b/scripts/run_command.sh @@ -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 \ diff --git a/scripts/validate.sh b/scripts/validate.sh index d2bc99a..aed90cc 100755 --- a/scripts/validate.sh +++ b/scripts/validate.sh @@ -31,6 +31,7 @@ else fi say "$g==>$x CLI integrity verified" say + chmod +x "$codecov_command" fi if [ -n "$CODECOV_BINARY_LOCATION" ];