We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 358e836 commit dd51812Copy full SHA for dd51812
1 file changed
test-wheel.bash
@@ -94,7 +94,7 @@ launch_background_command() {
94
95
cleanup_background_jobs() {
96
local pid=""
97
- for pid in "${background_pids[@]}"; do
+ for pid in "${background_pids[@]:+${background_pids[@]}}"; do
98
if kill -0 "$pid" >/dev/null 2>&1; then
99
terminate_pid_tree "$pid"
100
else
@@ -126,7 +126,7 @@ on_exit() {
126
cleanup_virtualenv
127
128
if [[ ${#failed_pids[@]} -gt 0 ]]; then
129
- echo "The following background processes exited with nonzero status: ${failed_pids[@]}"
+ echo "The following background processes exited with nonzero status: ${failed_pids[@]:+${failed_pids[@]}}"
130
return 1
131
fi
132
return 0
0 commit comments