From 96c03b18a2915868f204d42805f4c29751b8f7e4 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Fri, 7 Mar 2025 19:06:50 +0900 Subject: [PATCH] updated Arch-Hyprland --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 14a03a0..6794eaa 100755 --- a/install.sh +++ b/install.sh @@ -157,7 +157,7 @@ echo "${INFO} - Checking if yay or paru is installed" if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then echo "${CAT} - Neither yay nor paru found. Asking 🗣️ USER to select..." while true; do - aur_helper=$(whiptail --title "Neither Yay nor Paru is installed" --checklist "Choose ONE helper ONLY!\nNOTE: spacebar to select" 10 60 2 \ + aur_helper=$(whiptail --title "Neither Yay nor Paru is installed" --checklist "Choose ONE AUR helper ONLY!\nNOTE: spacebar to select" 10 60 2 \ "yay" "AUR Helper yay" "OFF" \ "paru" "AUR Helper paru" "OFF" \ 3>&1 1>&2 2>&3) @@ -171,8 +171,9 @@ if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then aur_helper=$(echo "$aur_helper" | tr -d '"') + # Check if no AUR helper was selected or if multiple helpers are selected if [[ -z "$aur_helper" || $(echo "$aur_helper" | wc -w) -ne 1 ]]; then - whiptail --title "Error" --msgbox "You must select at least one AUR helper." 10 60 2 + whiptail --title "Error" --msgbox "You must select at least one AUR helper to proceed." 10 60 2 else break fi