From: Arun Prakash Jana Date: Sat, 27 Mar 2021 19:29:23 +0000 (+0530) Subject: Use better pipe check X-Git-Tag: v3.7~34 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8542f5bc33dd2e8d8b084bc5725ea94b48b0a46a;p=nnn.git Use better pipe check --- diff --git a/plugins/autojump b/plugins/autojump index db10c84a..8f058d0b 100755 --- a/plugins/autojump +++ b/plugins/autojump @@ -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