From 1590a437a27371927223ae4a252f9a611473d971 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Adolfo=20Mesa=20Rold=C3=A1n?= Date: Tue, 29 Sep 2020 19:00:32 +0200 Subject: [PATCH] 0.4r6 - unzip instalation --- TODO | 1 + lch | 2 +- lib/check.sh | 17 ++++++++--------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/TODO b/TODO index 2f6fa63..e3716eb 100644 --- a/TODO +++ b/TODO @@ -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. \ No newline at end of file diff --git a/lch b/lch index 84fd977..92ec8e1 100755 --- a/lch +++ b/lch @@ -1,5 +1,5 @@ #!/bin/bash -VERSION=0.4r5 +VERSION=0.4r6 DEST=$1 shift 1 ORIG=$@ diff --git a/lib/check.sh b/lib/check.sh index d281754..7f07d24 100644 --- a/lib/check.sh +++ b/lib/check.sh @@ -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