mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Remove unnecessary redirection
This commit is contained in:
parent
f343f315b5
commit
7a76ca8548
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue