Permalink
Browse files

Do what the documentation says: open in $PAGER, not less

  • Loading branch information...
1 parent 11b1e00 commit 72c065d9108af88a86f47543ef8af5e9813b866a @jmelis jmelis committed Jul 13, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 onelog
View
10 onelog
@@ -1,15 +1,17 @@
#!/bin/bash
+PAGER=${PAGER:-less}
+
if [ -n "$ONE_LOCATION" ]; then
if [ -n "$1" ]; then
- less $ONE_LOCATION/var/$1/vm.log
+ $PAGER $ONE_LOCATION/var/$1/vm.log
else
- less $ONE_LOCATION/var/oned.log
+ $PAGER $ONE_LOCATION/var/oned.log
fi
else
if [ -n "$1" ]; then
- less /var/log/one/$1.log
+ $PAGER /var/log/one/$1.log
else
- less /var/log/one/oned.log
+ $PAGER /var/log/one/oned.log
fi
fi

0 comments on commit 72c065d

Please sign in to comment.