Install paru if it is not installed

This commit is contained in:
RealStickman 2023-05-21 19:26:19 +02:00
parent 765d63a800
commit c737fd5577

View File

@ -264,15 +264,12 @@ while read package; do
done <"$setupdir/packages/winepkgs.txt" done <"$setupdir/packages/winepkgs.txt"
echo Installed wine echo Installed wine
# install paru-bin with yay, or download paru from github # install paru-bin
if [[ $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then if [[ ! $(pacman -Q | grep paru) ]]; then
echo "Installing paru" echo "Installing paru from the AUR"
yay -S paru-bin
elif [[ ! $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then
echo "Installing paru from git"
git clone https://aur.archlinux.org/paru-bin.git git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin cd paru-bin
makepkg -si yes | LC_ALL=en_US.UTF-8 makepkg -si
cd .. cd ..
fi fi