Use better pipe check

This commit is contained in:
Arun Prakash Jana 2021-03-28 00:59:23 +05:30
parent ccf2927b6d
commit 8542f5bc33
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -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