From 8542f5bc33dd2e8d8b084bc5725ea94b48b0a46a Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sun, 28 Mar 2021 00:59:23 +0530 Subject: [PATCH] Use better pipe check --- plugins/autojump | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.48.1