Update install.sh

This commit is contained in:
FURK4NGG
2026-01-09 18:39:26 +03:00
committed by GitHub
parent 21e64f73fc
commit e26e481728
+22 -1
View File
@@ -16,8 +16,29 @@ if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
git clone https://aur.archlinux.org/yay.git git clone https://aur.archlinux.org/yay.git
cd yay cd yay
makepkg -si makepkg -si
echo -e "${GREEN}Do you want a quick setup?(downloads all packages) (y/n)${NC}"
read -r answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
sudo pacman -Syu --noconfirm $PACKAGES sudo pacman -Syu --noconfirm $PACKAGES
yay -S --noconfirm $PACKAGES-Y yay -S --noconfirm $PACKAGES_YAY
else
echo -e "${GREEN}Selective install mode${NC}"
for pkg in $PACKAGES; do
read -rp "Install $pkg? (y/n): " ans
if [[ "$ans" =~ ^[Yy]$ ]]; then
sudo pacman -S --needed "$pkg"
fi
done
for pkg in $PACKAGES_YAY; do
read -rp "Install $pkg (AUR)? (y/n): " ans
if [[ "$ans" =~ ^[Yy]$ ]]; then
yay -S --needed "$pkg"
fi
done
fi
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
sudo systemctl enable sddm sudo systemctl enable sddm