diff --git a/distros.sh b/distros.sh index eee1b1d..5f6a460 100755 --- a/distros.sh +++ b/distros.sh @@ -228,22 +228,6 @@ _setup() { fi } - if command_exists pacman; then - if ! checkAUR; then - paruBuildDir="/opt/builds" - $_sudo mkdir -p "$paruBuildDir" - # if ! command_exists paru; then - echo "${YELLOW}Installing paru as AUR helper...${NC}" - $_sudo pacman -S --needed --noconfirm base-devel git - cd "$paruBuildDir" && $_sudo git clone https://aur.archlinux.org/paru-bin.git paru && $_sudo chown -R "$USER": "$paruBuildDir/paru" || return 69 - cd "$paruBuildDir/paru" && makepkg --noconfirm -si - echo "${GREEN}Paru installed${NC}" - # else - # printf "%b\n" "${GREEN}Paru already installed${RC}" - # fi - fi - fi - _install() { if command_exists paru; then echo_pkg "Using paru" @@ -473,6 +457,25 @@ if check_env; then if [[ -z "$PIKA_INIT" ]]; then echo_pkg "First time being imported.." + if $arch; then + if command_exists pacman; then + if ! checkAUR; then + paruBuildDir="/opt/builds" + $_sudo mkdir -p "$paruBuildDir" + # if ! command_exists paru; then + echo "${YELLOW}Installing paru as AUR helper...${NC}" + $_sudo pacman -S --needed --noconfirm base-devel git + cd "$paruBuildDir" && $_sudo git clone https://aur.archlinux.org/paru-bin.git paru + $_sudo chown -R "$USER": "$paruBuildDir/paru" + cd "$paruBuildDir/paru" && makepkg --noconfirm -si + echo "${GREEN}Paru installed${NC}" + # else + # printf "%b\n" "${GREEN}Paru already installed${RC}" + # fi + fi + fi + fi + if update_package_list; then touch "$pikaCheckFile" fi