add argument to check if yay or paru is installed first before asking if want yay or paru

This commit is contained in:
JaKooLit
2025-02-03 19:40:33 +09:00
parent 61b61a980c
commit d6a25e04e7
2 changed files with 4 additions and 5 deletions

View File

@@ -2,10 +2,6 @@
# 💫 https://github.com/JaKooLit 💫 # # 💫 https://github.com/JaKooLit 💫 #
# XDG-Desktop-Portals hyprland # # XDG-Desktop-Portals hyprland #
if [[ $USE_PRESET = [Yy] ]]; then
source ./preset.sh
fi
xdg=( xdg=(
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk xdg-desktop-portal-gtk

View File

@@ -179,7 +179,10 @@ if lspci | grep -i "nvidia" &> /dev/null; then
ask_yes_no "-${YELLOW}NVIDIA${RESET} GPU is detected. Do you want script to configure it?" nvidia ask_yes_no "-${YELLOW}NVIDIA${RESET} GPU is detected. Do you want script to configure it?" nvidia
fi fi
printf "\n" printf "\n"
ask_custom_option "-Type ${YELLOW}AUR helper${RESET} wanted" "paru or yay" aur_helper # Check first if yay or paru is installed before askiing aur helper
if ! command -v yay &>/dev/null && ! command -v paru &>/dev/null; then
ask_custom_option "-Type ${YELLOW}AUR helper${RESET} wanted" "paru or yay" aur_helper
fi
printf "\n" printf "\n"
ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes
printf "\n" printf "\n"