From 2b9e1e5b2e6a6adc48139e2beed28ccabd4695f0 Mon Sep 17 00:00:00 2001 From: clsty Date: Mon, 17 Jun 2024 15:49:24 +0800 Subject: [PATCH] Detect `/usr/local/share/com.github.Aylur.ags` --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 7c0dce62b..877174abb 100755 --- a/install.sh +++ b/install.sh @@ -291,6 +291,9 @@ grep -q 'source ${XDG_CONFIG_HOME:-~/.config}/zshrc.d/dots-hyprland.zsh' ~/.zshr existed_ags_localbin=n test -f /usr/local/bin/ags && existed_ags_localbin=y +existed_ags_localshare=n +test -d /usr/local/share/com.github.Aylur.ags && existed_ags_localshare=y + ##################################################################################### printf "\e[36m[$0]: Finished. See the \"Import Manually\" folder and grab anything you need.\e[0m\n" printf "\n" @@ -315,3 +318,6 @@ case $existed_hypr_conf in case $existed_ags_localbin in y) printf "\n\e[31m[$0]: \!! Important \!! : Please delete \"/usr/local/bin/ags\" manually as soon as possible, since we\'re now using local PKGBUILD to build AGS for Arch(based) Linux distros, and \"/usr/local/bin/ags\" takes precedence over it.\e[0m\n" ;;esac +case $existed_ags_localshare in + y) printf "\n\e[31m[$0]: \!! Important \!! : Please delete \"/usr/local/share/com.github.Aylur.ags\" manually as soon as possible, since we\'re now using local PKGBUILD to build AGS for Arch(based) Linux distros, and \"/usr/local/share/com.github.Aylur.ags\" may take precedence over it.\e[0m\n" +;;esac