Change paru installation a bit

This commit is contained in:
RealStickman 2021-03-15 15:02:17 +01:00
parent bcac272798
commit a2fcc213ff

View File

@ -294,13 +294,11 @@ sudo make install
cd .. cd ..
rm -rf neofetch rm -rf neofetch
# install paru # install paru-bin with yay, or download paru from github
if [[ $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then if [[ $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then
echo "Installing paru" echo "Installing paru"
yay -S paru-bin yay -S paru-bin
fi elif [[ ! $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then
if [[ $(pacman -Q | grep yay) ]] && [[ ! $(pacman -Q | grep paru) ]]; then
echo "Installing paru from git" echo "Installing paru from git"
git clone https://aur.archlinux.org/paru.git git clone https://aur.archlinux.org/paru.git
cd paru cd paru