projects
/
nnn.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccf2927
)
Use better pipe check
author
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 27 Mar 2021 19:29:23 +0000 (
00:59
+0530)
committer
Arun Prakash Jana <engineerarun@gmail.com>
Sat, 27 Mar 2021 19:29:23 +0000 (
00:59
+0530)
plugins/autojump
patch
|
blob
|
history
diff --git
a/plugins/autojump
b/plugins/autojump
index db10c84a8e463c14a3636796c50a1ab982e0aea4..8f058d0bdff85a9b8a42f4a72474bf4f936258bd 100755
(executable)
--- 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