From 91cae2b6752394533a69a8762e07e807896c85d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Adolfo=20Mesa=20Rold=C3=A1n?= Date: Sat, 3 Oct 2020 11:59:47 +0200 Subject: [PATCH] 0.6r1 --- lch | 5 +---- lib/installers/apt.sh | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/lch b/lch index 2476e3b..3f4dacc 100755 --- a/lch +++ b/lch @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERSION=0.6r0 +VERSION=0.6r1 DEST=$1 shift 1 ORIG=$@ @@ -9,9 +9,6 @@ if [[ -e ./lib/compressor.sh ]]; then . ./lib/compressor.sh; else . /usr/lib/lc if [[ -e ./lib/decompressor.sh ]]; then . ./lib/decompressor.sh; else . /usr/lib/lch/decompressor.sh; fi if [[ -e ./lib/installer.sh ]]; then . ./lib/installer.sh; else . /usr/lib/lch/installer.sh; fi - -# executer tar -cvf $DEST $ORIG - if [ "$DEST" = "--version" ] || [ "$DEST" = "-v" ] then echo "Linux Compression Humanized $VERSION" diff --git a/lib/installers/apt.sh b/lib/installers/apt.sh index 83be413..250654f 100644 --- a/lib/installers/apt.sh +++ b/lib/installers/apt.sh @@ -5,7 +5,7 @@ function get_dep(){ # Busca la manera de capturar el error. Y mostrar mensaje en rojo. apt-get install -y $@ 1> /dev/null - complete_install $@ + if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi } # Run @@ -13,7 +13,6 @@ function get_dep(){ echo -e "APT system detected" echo "---------------------" - if [ $# -eq 1 ]; then if $PRIVSOFT; then rarInstall @@ -42,6 +41,4 @@ else esac fi done -fi - -# apt-get install -y tar bzip2 gzip zip unzip p7zip-full p7zip-rar 1> /dev/null \ No newline at end of file +fi \ No newline at end of file