Skip to content

Commit 0e2bc14

Browse files
fix: update validation code to run chmod
1 parent ddd9a51 commit 0e2bc14

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

dist/codecov.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ fi
105105
if [ "$CODECOV_SKIP_VALIDATION" == "true" ] || [ -n "$CODECOV_BINARY" ] || [ "$CODECOV_USE_PYPI" == "true" ];
106106
then
107107
say "$r==>$x Bypassing validation..."
108+
if [ "$CODECOV_SKIP_VALIDATION" == "true" ];
109+
then
110+
chmod +x "$CODECOV_COMMAND"
111+
fi
108112
else
109113
echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | \
110114
gpg --no-default-keyring --import
@@ -139,6 +143,7 @@ fi
139143
if [ "$CODECOV_DOWNLOAD_ONLY" = "true" ];
140144
then
141145
say "$g==>$x ${CODECOV_CLI_TYPE} download only called. Exiting..."
146+
exit
142147
fi
143148
CODECOV_CLI_ARGS=()
144149
CODECOV_CLI_ARGS+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM))

scripts/validate.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
if [ "$CODECOV_SKIP_VALIDATION" == "true" ] || [ -n "$CODECOV_BINARY" ] || [ "$CODECOV_USE_PYPI" == "true" ];
44
then
55
say "$r==>$x Bypassing validation..."
6+
if [ "$CODECOV_SKIP_VALIDATION" == "true" ];
7+
then
8+
chmod +x "$CODECOV_COMMAND"
9+
fi
610
else
711
echo "$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)" | \
812
gpg --no-default-keyring --import
@@ -42,4 +46,5 @@ fi
4246
if [ "$CODECOV_DOWNLOAD_ONLY" = "true" ];
4347
then
4448
say "$g==>$x ${CODECOV_CLI_TYPE} download only called. Exiting..."
49+
exit
4550
fi

0 commit comments

Comments
 (0)