diff --git a/install.sh b/install.sh index f9c3fe3..96457d7 100755 --- a/install.sh +++ b/install.sh @@ -61,6 +61,12 @@ else fi fi +if ! command -v whiptail >/dev/null; then + echo "${NOTE} - whiptail is not installed. Installing..." + sudo pacman -S --noconfirm whiptail + printf "\n%.0s" {1..1} +fi + clear printf "\n%.0s" {1..2} @@ -98,12 +104,6 @@ if ! pacman -Qs pciutils > /dev/null; then printf "\n%.0s" {1..1} fi -if ! command -v whiptail >/dev/null; then - echo "${NOTE} - whiptail is not installed. Installing..." - sudo pacman -S --noconfirm whiptail - printf "\n%.0s" {1..1} -fi - # Set the name of the log file to include the current date and time LOG="install-$(date +%d-%H%M%S).log"