This commit is contained in:
Gustavo Adolfo Mesa Roldán
2020-10-03 13:34:48 +02:00
parent 1e1be717d7
commit 8a22e4c66c
3 changed files with 93 additions and 5 deletions
+2 -5
View File
@@ -53,15 +53,12 @@ function install()
elif [ -x "$(command -v dnf)" ] || [ -x "$(command -v yum)" ]
then
if [[ -e ./lib/installers/rpm.sh ]]; then . ./lib/installers/rpm.sh; else . /usr/lib/lch/installers/rpm.sh; fi
# Hasta aqui he modificado
elif [ -x "$(command -v pacman)" ]
then
echo -e "Pacman system detected"
pacman -Sqy --noconfirm tar bzip2 gzip zip unzip p7zip 1> /dev/null
if [[ -e ./lib/installers/pacman.sh ]]; then . ./lib/installers/pacman.sh; else . /usr/lib/lch/installers/pacman.sh; fi
elif [ -x "$(command -v zypper)" ]
then
echo -e "Zypper system detected"
zypper install -y tar bzip2 gzip zip unzip p7zip-full 1> /dev/null
if [[ -e ./lib/installers/zypper.sh ]]; then . ./lib/installers/zypper.sh; else . /usr/lib/lch/installers/zypper.sh; fi
else
echo -e "System installer not detected"
fi