From c219859dbb83c604ca14076d4eec0395d04c94bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Kapri=C5=A1?= Date: Sun, 20 Apr 2025 21:53:52 +0200 Subject: [PATCH] Replace install loops with singular commands --- bs.sh | 38 +++++++++----------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/bs.sh b/bs.sh index e8d72a9..fdde9a2 100644 --- a/bs.sh +++ b/bs.sh @@ -191,33 +191,15 @@ manualinstall() { makepkg --noconfirm -si >/dev/null 2>&1 || return 1 } -maininstall() { - # Installs all needed programs from main repo. - whiptail --title "LARBS Installation" --infobox "Installing \`$1\` ($n of $total). $1 $2" 9 70 - installpkg "$1" -} - -aurinstall() { - whiptail --title "LARBS Installation" \ - --infobox "Installing \`$1\` ($n of $total) from the AUR. $1 $2" 9 70 - echo "$aurinstalled" | grep -q "^$1$" && return 1 - sudo -u "$name" $aurhelper -S --noconfirm "$1" >/dev/null 2>&1 -} - -installationloop() { +maininstallations() { ([ -f "$progsfile" ] && cp "$progsfile" /tmp/progs.csv) || curl -Ls "$progsfile" | sed '/^#/d' >/tmp/progs.csv total=$(wc -l