0.4r6 - unzip instalation
This commit is contained in:
@@ -15,3 +15,4 @@ Impotancia (0>10) # Nombre de la incidencia.
|
|||||||
- ¿Ficheros que soporta?
|
- ¿Ficheros que soporta?
|
||||||
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
|
AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM, SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
|
||||||
|
|
||||||
|
9 # El desistalado parece no borrar el man del sistema.
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
VERSION=0.4r5
|
VERSION=0.4r6
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
|
|||||||
+8
-9
@@ -5,7 +5,7 @@ function check()
|
|||||||
echo -e "Verification of compression systems:\n"
|
echo -e "Verification of compression systems:\n"
|
||||||
echo -e "Systems\t\t\tStatus"
|
echo -e "Systems\t\t\tStatus"
|
||||||
echo "----------------------------------"
|
echo "----------------------------------"
|
||||||
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "7za"
|
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "unzip" "7za"
|
||||||
do
|
do
|
||||||
if ! [ -x "$(command -v $i)" ]
|
if ! [ -x "$(command -v $i)" ]
|
||||||
then
|
then
|
||||||
@@ -18,14 +18,13 @@ function check()
|
|||||||
|
|
||||||
if $a
|
if $a
|
||||||
then
|
then
|
||||||
echo -e "\nIn order to use all the extensions install the packages: tar, bzip2, gzip, zip, 7za, rar, unrar"
|
echo -e "\nIn order to use all the extensions install the packages: tar, bzip2, gzip, zip, unzip, 7za, rar, unrar"
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function rarInstall(){
|
function rarInstall(){
|
||||||
|
|
||||||
if [[ $(uname -m) -eq "x86_64" ]]
|
if [[ $(uname -m) -eq "x86_64" ]]
|
||||||
then
|
then
|
||||||
RAR_URL="https://www.rarlab.com/rar/rarlinux-x64-5.9.1.tar.gz"
|
RAR_URL="https://www.rarlab.com/rar/rarlinux-x64-5.9.1.tar.gz"
|
||||||
@@ -71,7 +70,7 @@ function install()
|
|||||||
if [ -x "$(command -v apt)" ]
|
if [ -x "$(command -v apt)" ]
|
||||||
then
|
then
|
||||||
echo -e "APT system detected\n"
|
echo -e "APT system detected\n"
|
||||||
apt install -y tar bzip2 gzip zip p7zip-full 1> /dev/null
|
apt install -y tar bzip2 gzip zip unzip p7zip-full 1> /dev/null
|
||||||
elif [ -n "$(grep "centos" /etc/*-release)" ]
|
elif [ -n "$(grep "centos" /etc/*-release)" ]
|
||||||
then
|
then
|
||||||
echo -e "CentOS system detected\n"
|
echo -e "CentOS system detected\n"
|
||||||
@@ -79,23 +78,23 @@ function install()
|
|||||||
rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm 1> /dev/null
|
rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm 1> /dev/null
|
||||||
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 1> /dev/null
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 1> /dev/null
|
||||||
yum repolist 1> /dev/null
|
yum repolist 1> /dev/null
|
||||||
yum install -y -q tar bzip2 gzip zip p7zip 1> /dev/null
|
yum install -y -q tar bzip2 gzip zip unzip p7zip 1> /dev/null
|
||||||
elif [ -x "$(command -v dnf)" ]
|
elif [ -x "$(command -v dnf)" ]
|
||||||
then
|
then
|
||||||
echo -e "DNF system detected\n"
|
echo -e "DNF system detected\n"
|
||||||
dnf install -y -q tar bzip2 gzip zip p7zip 1> /dev/null
|
dnf install -y -q tar bzip2 gzip zip unzip p7zip 1> /dev/null
|
||||||
elif [ -x "$(command -v yum)" ]
|
elif [ -x "$(command -v yum)" ]
|
||||||
then
|
then
|
||||||
echo -e "Yum system detected\n"
|
echo -e "Yum system detected\n"
|
||||||
yum install -y -q tar bzip2 gzip zip p7zip 1> /dev/null
|
yum install -y -q tar bzip2 gzip zip unzip p7zip 1> /dev/null
|
||||||
elif [ -x "$(command -v pacman)" ]
|
elif [ -x "$(command -v pacman)" ]
|
||||||
then
|
then
|
||||||
echo -e "Pacman system detected\n"
|
echo -e "Pacman system detected\n"
|
||||||
pacman -Sqy --noconfirm tar bzip2 gzip zip p7zip 1> /dev/null
|
pacman -Sqy --noconfirm tar bzip2 gzip zip unzip p7zip 1> /dev/null
|
||||||
elif [ -x "$(command -v zypper)" ]
|
elif [ -x "$(command -v zypper)" ]
|
||||||
then
|
then
|
||||||
echo -e "Zypper system detected\n"
|
echo -e "Zypper system detected\n"
|
||||||
zypper install -y tar bzip2 gzip zip p7zip-full 1> /dev/null
|
zypper install -y tar bzip2 gzip zip unzip p7zip-full 1> /dev/null
|
||||||
else
|
else
|
||||||
echo -e "System installer not detected\n"
|
echo -e "System installer not detected\n"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user