jetzt aber xD

This commit is contained in:
pika 2025-05-19 14:43:49 +02:00
parent a22545c99a
commit 3e9df99a27

View file

@ -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