From 52d28bd4398d0b9b2771ae4abd992e6b23d05c03 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 18 Jan 2023 21:48:35 -0500 Subject: [PATCH] skip yay if already installed --- larbs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/larbs.sh b/larbs.sh index 1e469a9..ad7bc29 100644 --- a/larbs.sh +++ b/larbs.sh @@ -109,7 +109,8 @@ Include = /etc/pacman.d/mirrorlist-arch" >>/etc/pacman.conf manualinstall() { # Installs $1 manually. Used only for AUR helper here. # Should be run after repodir is created and var is set. - whiptail --infobox "Installing \"$1\", an AUR helper..." 7 50 + pacman -Qq "$1" && return 0 + whiptail --infobox "Installing \"$1\" manually." 7 50 sudo -u "$name" mkdir -p "$repodir/$1" sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \ --no-tags -q "https://aur.archlinux.org/$1.git" "$repodir/$1" || @@ -330,7 +331,7 @@ echo "export \$(dbus-launch)" >/etc/profile.d/dbus.sh Option "Tapping" "on" EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf -# All this below to get Librefox installed with add-ons and non-bad settings. +# All this below to get Librewolf installed with add-ons and non-bad settings. whiptail --infobox "Setting browser privacy settings and add-ons..." 7 60