Remove unnecessary redirection

This commit is contained in:
Arun Prakash Jana 2021-05-14 18:45:09 +05:30
parent f343f315b5
commit 7a76ca8548
No known key found for this signature in database
GPG key ID: A75979F35C080412
2 changed files with 4 additions and 2 deletions

View file

@ -12,7 +12,8 @@
# Authors: Marty Buchaus, Dave Snider, Tim Adler # Authors: Marty Buchaus, Dave Snider, Tim Adler
if [ ! -p "$NNN_PIPE" ]; then if [ ! -p "$NNN_PIPE" ]; then
echo 'ERROR: NNN_PIPE is not set' | ${PAGER:-less} printf 'ERROR: NNN_PIPE is not set!'
read -r _
exit 2 exit 2
fi fi

View file

@ -31,7 +31,8 @@ fi
# Check if NNN_PIPE is set # Check if NNN_PIPE is set
if [ -z "$NNN_PIPE" ]; then if [ -z "$NNN_PIPE" ]; then
echo 'ERROR: NNN_PIPE is not set' | ${PAGER:-less} printf 'ERROR: NNN_PIPE is not set!'
read -r _
exit 2 exit 2
fi fi