From d6a25e04e7a5eb59a60c22916adc6cc34ec15ed3 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 3 Feb 2025 19:40:33 +0900 Subject: [PATCH] add argument to check if yay or paru is installed first before asking if want yay or paru --- install-scripts/xdph.sh | 4 ---- install.sh | 5 ++++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/install-scripts/xdph.sh b/install-scripts/xdph.sh index 6653dc1..434d71e 100755 --- a/install-scripts/xdph.sh +++ b/install-scripts/xdph.sh @@ -2,10 +2,6 @@ # 💫 https://github.com/JaKooLit 💫 # # XDG-Desktop-Portals hyprland # -if [[ $USE_PRESET = [Yy] ]]; then - source ./preset.sh -fi - xdg=( xdg-desktop-portal-hyprland xdg-desktop-portal-gtk diff --git a/install.sh b/install.sh index c94da26..6001fbd 100755 --- a/install.sh +++ b/install.sh @@ -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 fi 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" ask_yes_no "-Install ${YELLOW}GTK themes${RESET} (required for Dark/Light function)?" gtk_themes printf "\n"