]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove unnecessary redirection
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 14 May 2021 13:15:09 +0000 (18:45 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 14 May 2021 13:15:09 +0000 (18:45 +0530)
plugins/autojump
plugins/bookmarks

index 0b8425326f23611d215e6af7477e29b480fec522..dc840628038380d37cc1a3ce05088c7e94e0ae1c 100755 (executable)
@@ -12,7 +12,8 @@
 # Authors: Marty Buchaus, Dave Snider, Tim Adler
 
 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
 fi
 
index dbb8dbe07488d760b78780c67b4f513b689195db..1bb3503df0836bb3cfd7c2012139b2087dd9d566 100755 (executable)
@@ -31,7 +31,8 @@ fi
 
 # Check if NNN_PIPE is set
 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
 fi