From 9fe194d959b40ad5b3275bbb82c9b06fd8560eca Mon Sep 17 00:00:00 2001 From: UmmIt Date: Fri, 6 Dec 2024 19:20:38 +0800 Subject: [PATCH] chore: switch to GitHub mirror for repository URL and correct yay installation path - Replaced Codeberg repository URL with the GitHub mirror for more reliable access. - Ensured the `yay` installation process clones the AUR repository outside of the Dotfiles directory to prevent conflicts. --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 9252428..7e79ddc 100755 --- a/setup.sh +++ b/setup.sh @@ -7,7 +7,7 @@ COLOR_DARKRED='\033[0;31m' COLOR_YELLOW='\033[0;33m' COLOR_RESET='\033[0m' # No Color -repo_url=https://codeberg.org/UmmIt/Dotfiles.git +repo_url=https://github.com/UmmItC/Dotfiles.git repo=Dotfiles # Function to prompt for yes/no input with default value 'y' @@ -52,7 +52,7 @@ check_yay() { echo "${COLOR_YELLOW}:: yay is not installed.${COLOR_RESET}" if prompt_yna ":: Would you like to install yay?"; then echo "${COLOR_GREEN}:: Installing yay...${COLOR_RESET}" - if ! (git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si); then + if ! (cd .. && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si); then echo "${COLOR_DARK_RED}:: Failed to install yay.${COLOR_RESET}" exit 1 fi