This commit is contained in:
Gustavo Adolfo Mesa Roldán
2020-10-03 07:19:07 +02:00
parent b25fc8bd8d
commit 5816870906
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ $ lch -i - Install the compressors dependencies
- lzh - lzh
- lzma - lzma
- rpm - rpm
- SquashFS - squashfs
- vdi - vdi
- vhd - vhd
- vmdk - vmdk
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION=0.5r7 VERSION=0.5r8
DEST=$1 DEST=$1
shift 1 shift 1
ORIG=$@ ORIG=$@
+1 -1
View File
@@ -14,7 +14,7 @@ extension.
7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip 7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip
Unpacking only supported extensions: Unpacking only supported extensions:
arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z arj, cab, dmg, iso, lzh, lzma, rpm, squashfs, vdi, vhd, vmdk, win, xar, z
.SH OPTIONS .SH OPTIONS
.TP .TP
+4 -4
View File
@@ -52,7 +52,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 unzip p7zip-full 1> /dev/null apt install -y tar bzip2 gzip zip unzip p7zip-full p7zip-rar 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"
@@ -60,15 +60,15 @@ 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 unzip p7zip 1> /dev/null yum install -y -q tar bzip2 gzip zip unzip p7zip p7zip-plugins 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 unzip p7zip 1> /dev/null dnf install -y -q tar bzip2 gzip zip unzip p7zip p7zip-plugins 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 unzip p7zip 1> /dev/null yum install -y -q tar bzip2 gzip zip unzip p7zip p7zip-plugins 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"
+1 -1
View File
@@ -20,7 +20,7 @@ function help()
echo " 7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip" echo " 7z, bz2, gz, rar, tar, tar.bz2, tbz, tbz2, tb2, tar.gz, tgz, tar.xz, txz, zip"
echo "" echo ""
echo "Unpacking only supported extensions:" echo "Unpacking only supported extensions:"
echo " arj, cab, dmg, iso, lzh, lzma, rpm, SquashFS, vdi, vhd, vmdk, win, xar, z" echo " arj, cab, dmg, iso, lzh, lzma, rpm, squashfs, vdi, vhd, vmdk, win, xar, z"
echo "" echo ""
echo "Run 'man lch' for more info." echo "Run 'man lch' for more info."
echo "" echo ""