skip yay if already installed
This commit is contained in:
parent
2077c372e3
commit
52d28bd439
5
larbs.sh
5
larbs.sh
@ -109,7 +109,8 @@ Include = /etc/pacman.d/mirrorlist-arch" >>/etc/pacman.conf
|
|||||||
manualinstall() {
|
manualinstall() {
|
||||||
# Installs $1 manually. Used only for AUR helper here.
|
# Installs $1 manually. Used only for AUR helper here.
|
||||||
# Should be run after repodir is created and var is set.
|
# 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" mkdir -p "$repodir/$1"
|
||||||
sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \
|
sudo -u "$name" git -C "$repodir" clone --depth 1 --single-branch \
|
||||||
--no-tags -q "https://aur.archlinux.org/$1.git" "$repodir/$1" ||
|
--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"
|
Option "Tapping" "on"
|
||||||
EndSection' >/etc/X11/xorg.conf.d/40-libinput.conf
|
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
|
whiptail --infobox "Setting browser privacy settings and add-ons..." 7 60
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user