Skip to content

Commit 811deb3

Browse files
committed
Redirect stderr of kill command to stdout
1 parent d7edaa9 commit 811deb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/pre-exit

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

191191
for index in "${!uploads_in_progress[@]}"; do
192192
# Note: kill -0 does not kill the pid, it provides a *nix compatible way to test the pid is responding.
193-
if ! kill -0 "${uploads_in_progress[index]}" > /dev/null; then
193+
if ! kill -0 "${uploads_in_progress[index]}" > /dev/null 2>&1; then
194194
unset 'uploads_in_progress[index]'
195195
elif [[ "$iterations_waited" -gt $TIMEOUT ]]; then
196196
echo "Upload '${uploads_in_progress[index]}' has been running for more than '${TIMEOUT}' seconds, killing it"

0 commit comments

Comments
 (0)