fix: bump to latest wrapper

This commit is contained in:
Tom Hu 2024-10-22 11:52:56 -05:00
parent fdd8fac24b
commit 149664a835
No known key found for this signature in database
GPG key ID: 79155678363963D2

9
dist/codecov.sh vendored
View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
CC_WRAPPER_VERSION="0.0.18" CC_WRAPPER_VERSION="0.0.19"
say() { say() {
echo -e "$1" echo -e "$1"
} }
@ -40,6 +40,7 @@ say " _____ _
" "
CC_VERSION="${CC_VERSION:-latest}" CC_VERSION="${CC_VERSION:-latest}"
CC_FAIL_ON_ERROR="${CC_FAIL_ON_ERROR:-false}" CC_FAIL_ON_ERROR="${CC_FAIL_ON_ERROR:-false}"
CC_OS="linux"
if [ -n "$CC_BINARY" ]; if [ -n "$CC_BINARY" ];
then then
if [ -f "$CC_BINARY" ]; if [ -f "$CC_BINARY" ];
@ -48,6 +49,11 @@ then
else else
exit_if_error "Could not find binary file $CC_BINARY" exit_if_error "Could not find binary file $CC_BINARY"
fi fi
else
if [ -n "$CC_OS" ];
then
say "$g==>$x Overridden OS: $b${CC_OS}$x"
export cc_os=${CC_OS}
else else
family=$(uname -s | tr '[:upper:]' '[:lower:]') family=$(uname -s | tr '[:upper:]' '[:lower:]')
cc_os="windows" cc_os="windows"
@ -59,6 +65,7 @@ else
[[ $(arch) == "aarch64" && $family == "linux" ]] && cc_os+="-arm64" [[ $(arch) == "aarch64" && $family == "linux" ]] && cc_os+="-arm64"
say "$g==>$x Detected $b${cc_os}$x" say "$g==>$x Detected $b${cc_os}$x"
export cc_os=${cc_os} export cc_os=${cc_os}
fi
export cc_version=${CC_VERSION} export cc_version=${CC_VERSION}
cc_filename="codecov" cc_filename="codecov"
[[ $cc_os == "windows" ]] && cc_filename+=".exe" [[ $cc_os == "windows" ]] && cc_filename+=".exe"