check for less
This commit is contained in:
parent
60abf570b2
commit
a47f701e6d
1 changed files with 6 additions and 0 deletions
6
setup
6
setup
|
@ -2,6 +2,12 @@
|
|||
|
||||
set -e
|
||||
|
||||
# Check for less and install if not found
|
||||
if ! type "less" &> /dev/null; then
|
||||
echo "less not found, installing..."
|
||||
sudo pacman -S --noconfirm less
|
||||
fi
|
||||
|
||||
# Execute in less with a header for style points
|
||||
exec > >(less +F --header 8) 2>&1
|
||||
trap 'exec >&- 2>&-; wait' EXIT
|
||||
|
|
Loading…
Add table
Reference in a new issue