From a47f701e6dd6bdeebb650e1e18048263fe3c6258 Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Fri, 29 Dec 2023 23:47:33 -0500 Subject: [PATCH] check for less --- setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup b/setup index 6d97395..961983a 100755 --- a/setup +++ b/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