Allow use of paru in addition to yay as aur helper (#7652)

Hello Twenty Team,

If this is not an appropriate PR, please feel to close it. I am hoping
to make larger contributions down the road.

I was getting twenty setup locally, and I had a problem with the install
script. I noticed that `yay` was named as an AUR helper, but `paru` was
not. I use [paru](https://github.com/Morganamilo/paru), and this caused
the setup script to fail.

I made a small change in the if statement that checks if `pg-graphql`
can be installed with `yay`. I included a check for `paru` on the same
line.

Thanks everyone who has made this project what it is.
This commit is contained in:
Dylan Ullrich
2024-10-13 10:15:43 -07:00
committed by GitHub
parent 1e6346febd
commit da7a394e0c

View File

@ -98,7 +98,7 @@ elif [ "$PACKAGE_MANAGER" = "pacman" ]; then
sudo pacman -S postgresql postgresql-libs curl --noconfirm || handle_error "Failed to install PostgreSQL or curl."
echo_header $GREEN "Step [2/4]: Installing GraphQL for PostgreSQL on Arch..."
if ! yay -S --noconfirm pg_graphql; then
if ! yay -S --noconfirm pg_graphql && ! paru -S --noconfirm pg_graphql; then
handle_error "Failed to install pg_graphql package from AUR."
fi