]> Sergey Matveev's repositories - nnn.git/commitdiff
Use better pipe check
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 27 Mar 2021 19:29:23 +0000 (00:59 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 27 Mar 2021 19:29:23 +0000 (00:59 +0530)
plugins/autojump

index db10c84a8e463c14a3636796c50a1ab982e0aea4..8f058d0bdff85a9b8a42f4a72474bf4f936258bd 100755 (executable)
@@ -11,7 +11,7 @@
 # Shell: POSIX compliant
 # Authors: Marty Buchaus, Dave Snider, Tim Adler
 
-if [ -z "$NNN_PIPE" ]; then
+if [ ! -p "$NNN_PIPE" ]; then
     echo 'ERROR: NNN_PIPE is not set' | ${PAGER:-less}
     exit 2
 fi