Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.

Commit 0ee9c2f

Browse files
committed
Add "yes" flags. Remove LIBRARYPACKAGES as redundant.
1 parent cfb7dbd commit 0ee9c2f

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

LogosLinuxInstaller.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -558,17 +558,16 @@ getPackageManager() {
558558
fi
559559

560560
if [ -x "$(command -v apt)" ]; then
561-
PACKAGE_MANAGER="apt install"
562-
PACKAGES="mktemp patch lsof wget find sed grep gawk tr winbind cabextract x11-apps bc libxml2-utils curl"
563-
LIBRARYPACKAGES="fuse3"
561+
PACKAGE_MANAGER="apt install -y"
562+
PACKAGES="mktemp patch lsof wget find sed grep gawk tr winbind cabextract x11-apps bc libxml2-utils curl fuse3"
564563
elif [ -x "$(command -v dnf)" ]; then
565-
PACKAGE_MANAGER="dnf install"
564+
PACKAGE_MANAGER="dnf install -y"
566565
PACKAGES="patch mod_auth_ntlm_winbind samba-winbind cabextract bc libxml2 curl"
567566
elif [ -x "$(command -v yum)" ]; then
568-
PACKAGE_MANAGER="yum install"
567+
PACKAGE_MANAGER="yum install -y"
569568
PACKAGES="patch mod_auth_ntlm_winbind samba-winbind cabextract bc libxml2 curl"
570569
elif [ -x "$(command -v pamac)" ]; then
571-
PACKAGE_MANAGER="pamac install --no-upgrade"
570+
PACKAGE_MANAGER="pamac install --no-upgrade --no-confirm"
572571
PACKAGES="patch lsof wget sed grep gawk cabextract samba bc libxml2 curl"
573572
elif [ -x "$(command -v pacman)" ]; then
574573
PACKAGE_MANAGER='pacman -Syu --overwrite \* --noconfirm --needed'
@@ -591,7 +590,6 @@ getPackageManager() {
591590
if [ -n "${SUPERUSERDO}" ]; then export SUPERUSERDO; fi
592591
if [ -n "${PACKAGE_MANAGER}" ]; then export PACKAGE_MANAGER; fi
593592
if [ -n "${PACKAGES}" ]; then export PACKAGES; fi
594-
if [ -n "${LIBRARYPACKAGES}" ]; then export LIBRARYPACKAGES; fi
595593
}
596594

597595
installPackages() {
@@ -639,7 +637,7 @@ check_libs() {
639637
else
640638
if [ -n "${PACKAGE_MANGER}" ]; then
641639
logos_continue_question "Your ${OS} install is missing the library: ${lib}. To continue, the script will attempt to install the library by using ${PACKAGE_MANAGER}. Proceed?" "Your system does not have lib: ${lib}. Please install the package associated with ${lib} for ${OS}.\n ${EXTRA_INFO}"
642-
installPackages "${LIBRARYPACKAGES}"
640+
installPackages "${PACKAGES}"
643641
else
644642
logos_error "The script could not determine your ${OS} install's package manager or it is unsupported. Your computer is missing the library: ${lib}. Please install the package associated with ${lib} for ${OS}.\n ${EXTRA_INFO}"
645643
fi

0 commit comments

Comments
 (0)