less.sh: Avoid unnecessary stat call

While at it, remove unnecessary executable bits (in git) and shebang
from less.*sh.
This commit is contained in:
Ville Skyttä 2016-03-28 17:30:40 +03:00 committed by Pavel Raiskup
parent 3628f016fe
commit 11bfc57bdf
2 changed files with 1 additions and 2 deletions

1
less.csh Executable file → Normal file
View File

@ -1,4 +1,3 @@
#!/bin/csh
# less initialization script (csh)
if ( -x /usr/bin/lesspipe.sh ) then
if ( $?LESSOPEN && { eval 'test ! -z "$LESSOPEN"' } ) then

2
less.sh Executable file → Normal file
View File

@ -1,4 +1,4 @@
# less initialization script (sh)
if [ -x /usr/bin/lesspipe.sh ] && [ -z "$LESSOPEN" ]; then
if [ -z "$LESSOPEN" ] && [ -x /usr/bin/lesspipe.sh ]; then
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
fi