]> Sergey Matveev's repositories - nnn.git/commitdiff
Supress pgrep output
authorLuuk van Baal <luukvbaal@gmail.com>
Fri, 4 Jun 2021 15:04:01 +0000 (17:04 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Fri, 4 Jun 2021 15:04:01 +0000 (17:04 +0200)
plugins/preview-tui

index 63b1e0572ff2ee98ad7c21c0c147d21f9b5515cf..2e6c11e6b0c02af33e2888a2017f716d9b3f79e2 100755 (executable)
@@ -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