Skip to content

Commit a0812db

Browse files
Merge pull request #34 from codecov/release-0.0.29
chore(release): 0.0.29 and some small fixes
2 parents c63f5c9 + bdde0db commit a0812db

File tree

7 files changed

+19
-10
lines changed

7 files changed

+19
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,12 @@ jobs:
2323
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2424
CODECOV_FAIL_ON_ERROR: true
2525
CODECOV_FLAGS: flag1,flag2
26+
shellcheck:
27+
runs-on: macos-latest
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
- name: Install shellcheck
32+
run: brew install shellcheck
33+
- name: Run shellcheck
34+
run: shellcheck dist/codecov.sh --severity=error

dist/codecov.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env bash
2-
CC_WRAPPER_VERSION="0.0.28"
2+
CC_WRAPPER_VERSION="0.0.29"
33
set +u
44
say() {
55
echo -e "$1"
66
}
77
exit_if_error() {
88
say "$r==> $1$x"
9-
if [ $CC_FAIL_ON_ERROR = true ];
9+
if [ "$CC_FAIL_ON_ERROR" = true ];
1010
then
1111
say "$r Exiting...$x"
1212
exit 1;
@@ -84,10 +84,10 @@ else
8484
cc_url="$cc_url/${CC_VERSION}"
8585
cc_url="$cc_url/${cc_os}/${cc_filename}"
8686
say "$g ->$x Downloading $b${cc_url}$x"
87-
curl -Os $cc_url
87+
curl -Os "$cc_url"
8888
say "$g==>$x Finishing downloading $b${cc_os}:${CC_VERSION}$x"
8989
version_url="https://cli.codecov.io/${cc_os}/${CC_VERSION}"
90-
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
90+
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
9191
say " Version: $b$version$x"
9292
say " "
9393
fi
@@ -123,7 +123,7 @@ fi
123123
cc_cli_args=()
124124
cc_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))
125125
cc_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL))
126-
if [ -n $CC_YML_PATH ]
126+
if [ -n "$CC_YML_PATH" ]
127127
then
128128
cc_cli_args+=( "--codecov-yml-path" )
129129
cc_cli_args+=( "$CC_YML_PATH" )

scripts/download.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ else
3939
codecov_url="$codecov_url/${CODECOV_VERSION}"
4040
codecov_url="$codecov_url/${codecov_os}/${codecov_filename}"
4141
say "$g ->$x Downloading $b${codecov_url}$x"
42-
curl -Os $codecov_url
42+
curl -Os "$codecov_url"
4343
say "$g==>$x Finishing downloading $b${codecov_os}:${CODECOV_VERSION}$x"
4444

4545
version_url="https://cli.codecov.io/${codecov_os}/${CODECOV_VERSION}"
46-
version=$(curl -s $version_url -H "Accept:application/json" | jq -r '.version')
46+
version=$(curl -s "$version_url" -H "Accept:application/json" | jq -r '.version')
4747
say " Version: $b$version$x"
4848
say " "
4949
fi

scripts/set_cli_args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ codecov_cli_args=()
44

55
codecov_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))
66
codecov_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL))
7-
if [ -n $CODECOV_YML_PATH ]
7+
if [ -n "$CODECOV_YML_PATH" ]
88
then
99
codecov_cli_args+=( "--codecov-yml-path" )
1010
codecov_cli_args+=( "$CODECOV_YML_PATH" )

scripts/set_defaults.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ say() {
77

88
exit_if_error() {
99
say "$r==> $1$x"
10-
if [ $CODECOV_FAIL_ON_ERROR = true ];
10+
if [ "$CODECOV_FAIL_ON_ERROR" = true ];
1111
then
1212
say "$r Exiting...$x"
1313
exit 1;

scripts/set_upload_coverage_args.sh

100644100755
File mode changed.

scripts/version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env bash
2-
CODECOV_WRAPPER_VERSION="0.0.28"
2+
CODECOV_WRAPPER_VERSION="0.0.29"

0 commit comments

Comments
 (0)