From c84ddbdc6905b98304c1a39cad1c94c9cb0e62ff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Oct 2008 09:18:12 +0200 Subject: parameters: Only use lesspipe when it's available --- etc/parameters | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'etc/parameters') diff --git a/etc/parameters b/etc/parameters index 0374426..12d6f37 100644 --- a/etc/parameters +++ b/etc/parameters @@ -19,8 +19,10 @@ export CALENDAR_DIR=$HOME/packages/calendar/etc export HOST export COLUMNS export LINES -export LESSOPEN='| /usr/bin/lesspipe %s' -export LESSCLOSE='/usr/bin/lesspipe %s %s' +if [[ -x /usr/bin/lesspipe ]] { + export LESSOPEN='| /usr/bin/lesspipe %s' + export LESSCLOSE='/usr/bin/lesspipe %s %s' +} # others linux: export LANG=en_US.UTF-8 -- cgit v1.2.3