Hide: "kill no such process" error

This commit is contained in:
zen0bit 2024-05-03 15:28:43 +02:00
parent 8a86280e9a
commit 6486aa135b

View File

@ -27,7 +27,7 @@ export LC_ALL=C
# shellcheck disable=SC2317
function cleanup() {
if [ -n "$(jobs -p)" ]; then
kill "$(jobs -p)"
kill "$(jobs -p)" 2>/dev/null
fi
}