|
|
@ -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 |
|
|
|