Agrega dependencias necesarias
This commit is contained in:
parent
5fd14eb8db
commit
79946f4270
|
@ -53,22 +53,33 @@ case $? in
|
|||
APT_CMD=$(which apt)
|
||||
PACMAN_CMD=$(which pacman)
|
||||
ZYPPER_CMD=$(which zypper)
|
||||
|
||||
SUDO_CMD=$(which sudo)
|
||||
|
||||
# YUM_ZEN=$(which zenity)
|
||||
# APT_ZEN=$(which zenity)
|
||||
# PACMAN_ZEN=$(which zenity)
|
||||
# ZYPPER_ZEN=$(which zenity)
|
||||
|
||||
# YUM_CURL=$(which curl)
|
||||
# APT_CURL=$(which curl)
|
||||
# PACMAN_CURL=$(which curl)
|
||||
# ZYPPER_CURL=$(which curl)
|
||||
|
||||
if ! [ -e $SUDO_CMD ]; then
|
||||
|
||||
if [[ ! -z $APT_CMD ]]; then
|
||||
apt install sudo -y
|
||||
apt install sudo zenity curl -y
|
||||
elif [[ ! -z $YUM_CMD ]]; then
|
||||
dnf install sudo -y
|
||||
dnf install sudo zenity curl -y
|
||||
elif [[ ! -z $PACMAN_CMD ]]; then
|
||||
pacman -Sy sudo
|
||||
pacman -Sy sudo zenity curl
|
||||
elif [[ ! -z $ZYPPER_CMD ]]; then
|
||||
zypper -n install sudo
|
||||
zypper -n install sudo zenity curl
|
||||
fi
|
||||
else
|
||||
echo "\e[1;32m\u2713\e[1;0m\e[1;32mSudo está presente\e[1;0m"
|
||||
fi
|
||||
fi
|
||||
|
||||
#2 ## Escogemos la versión de LibreOffice
|
||||
# vs=$(zenity --entry --title="Ingrese la versión" --text="versión:")
|
||||
|
|
Loading…
Reference in a new issue