mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Use better pipe check
This commit is contained in:
parent
ccf2927b6d
commit
8542f5bc33
|
@ -11,7 +11,7 @@
|
||||||
# Shell: POSIX compliant
|
# Shell: POSIX compliant
|
||||||
# Authors: Marty Buchaus, Dave Snider, Tim Adler
|
# 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}
|
echo 'ERROR: NNN_PIPE is not set' | ${PAGER:-less}
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue