From 59f9364309e98720a77c8155324802a495da6f0a Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 28 Feb 2025 01:15:00 +0900 Subject: [PATCH] updated location of installation of whiptail --- install.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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"