Browse Source

0.4r6 - unzip instalation

pull/8/head
Gustavo Adolfo Mesa Roldán 3 years ago
parent
commit
1590a437a2
3 changed files with 10 additions and 10 deletions
  1. +1
    -0
      TODO
  2. +1
    -1
      lch
  3. +8
    -9
      lib/check.sh

+ 1
- 0
TODO View File

@ -15,3 +15,4 @@ Impotancia (0>10) # Nombre de la incidencia.
- ¿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.
9 # El desistalado parece no borrar el man del sistema.

+ 1
- 1
lch View File

@ -1,5 +1,5 @@
#!/bin/bash
VERSION=0.4r5
VERSION=0.4r6
DEST=$1
shift 1
ORIG=$@


+ 8
- 9
lib/check.sh View File

@ -5,7 +5,7 @@ function check()
echo -e "Verification of compression systems:\n"
echo -e "Systems\t\t\tStatus"
echo "----------------------------------"
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "7za"
for i in "rar" "unrar" "tar" "bzip2" "gzip" "zip" "unzip" "7za"
do
if ! [ -x "$(command -v $i)" ]
then
@ -18,14 +18,13 @@ function check()
if $a
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
echo ""
exit 0
}
function rarInstall(){
if [[ $(uname -m) -eq "x86_64" ]]
then
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)" ]
then
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)" ]
then
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 --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 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)" ]
then
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)" ]
then
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)" ]
then
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)" ]
then
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
echo -e "System installer not detected\n"
fi


Loading…
Cancel
Save