Browse Source

colorize: clean $PAGER support

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 11 years ago
parent
commit
9e192d8d71
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      files/bin/colorize

+ 3
- 5
files/bin/colorize

@ -13,11 +13,9 @@ if [ $# -eq 0 ]; then
fi
if [ -t 1 ]; then
if env | grep -q ^PAGER=; then
if [ -z "$PAGER" ]; then
PAGER=cat
fi
else
if env | grep -q '^PAGER=$'; then
PAGER=cat
elif [ -z "$PAGER" ]; then
PAGER="less -R"
fi
else

Loading…
Cancel
Save