File tree Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Expand file tree Collapse file tree 4 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,10 @@ cc_du_args+=( $(write_existing_args CC_GIT_SERVICE) )
171
171
cc_du_args+=( $( write_truthy_args CC_HANDLE_NO_REPORTS_FOUND) )
172
172
cc_du_args+=( $( write_existing_args CC_JOB_CODE) )
173
173
cc_du_args+=( $( write_truthy_args CC_LEGACY) )
174
- cc_du_args+=( $( write_existing_args CC_NAME) )
174
+ if [ -n " $CC_NAME " ];
175
+ then
176
+ cc_du_args+=( " --name" " $CC_NAME " )
177
+ fi
175
178
cc_du_args+=( $( write_existing_args CC_NETWORK_FILTER) )
176
179
cc_du_args+=( $( write_existing_args CC_NETWORK_PREFIX) )
177
180
cc_du_args+=( $( write_existing_args CC_NETWORK_ROOT_FOLDER) )
@@ -232,7 +235,7 @@ if ! ./$cc_filename \
232
235
${cc_cli_args[*]} \
233
236
do-upload \
234
237
${token_arg[*]} \
235
- ${cc_du_args[*]} ;
238
+ " ${cc_du_args[@]} " ;
236
239
then
237
240
exit_if_error " Failed to upload"
238
241
fi
Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ codecov_du_args+=( $(write_existing_args CODECOV_GIT_SERVICE) )
46
46
codecov_du_args+=( $( write_truthy_args CODECOV_HANDLE_NO_REPORTS_FOUND) )
47
47
codecov_du_args+=( $( write_existing_args CODECOV_JOB_CODE) )
48
48
codecov_du_args+=( $( write_truthy_args CODECOV_LEGACY) )
49
- codecov_du_args+=( $( write_existing_args CODECOV_NAME) )
49
+ if [ -n " $CODECOV_NAME " ];
50
+ then
51
+ codecov_du_args+=( " --name" " $CODECOV_NAME " )
52
+ fi
50
53
codecov_du_args+=( $( write_existing_args CODECOV_NETWORK_FILTER) )
51
54
codecov_du_args+=( $( write_existing_args CODECOV_NETWORK_PREFIX) )
52
55
codecov_du_args+=( $( write_existing_args CODECOV_NETWORK_ROOT_FOLDER) )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ if ! ./$codecov_filename \
51
51
${codecov_cli_args[*]} \
52
52
do-upload \
53
53
${token_arg[*]} \
54
- ${codecov_du_args[*]} ;
54
+ " ${codecov_du_args[@]} " ;
55
55
then
56
56
exit_if_error " Failed to upload"
57
57
fi
You can’t perform that action at this time.
0 commit comments