Supress pgrep output

This commit is contained in:
Luuk van Baal 2021-06-04 17:04:01 +02:00
parent 5533f152bd
commit 0fff92b396
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ winch_handler() {
tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json &
fi
preview_file "$(cat "$CURSEL")"
if ! kill -0 "$NNN_PARENT" || ! pgrep nnn; then
if ! kill -0 "$NNN_PARENT" || ! pgrep nnn >/dev/null; then
pkill -P "$$"
fi
} 2>/dev/null