diff --git a/lch b/lch index 09d3ede..ce955ee 100755 --- a/lch +++ b/lch @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERSION=0.6r6 +VERSION=0.6r7 DEST=$1 shift 1 ORIG=$@ diff --git a/lib/installer.sh b/lib/installer.sh index cfd64a7..ef24acc 100644 --- a/lib/installer.sh +++ b/lib/installer.sh @@ -55,7 +55,7 @@ function install() if [ -x "$(command -v apt)" ] then if [[ -e ./lib/installers/deb.sh ]]; then . ./lib/installers/deb.sh; else . /usr/lib/lch/installers/deb.sh; fi - elif [ -x "$(command -v dnf)" ] || [ -x "$(command -v yum)" ] + elif [ -x "$(command -v yum)" ] then if [[ -e ./lib/installers/rpm.sh ]]; then . ./lib/installers/rpm.sh; else . /usr/lib/lch/installers/rpm.sh; fi elif [ -x "$(command -v pacman)" ] diff --git a/lib/installers/deb.sh b/lib/installers/deb.sh index 959ad3a..3e9b16c 100644 --- a/lib/installers/deb.sh +++ b/lib/installers/deb.sh @@ -20,7 +20,12 @@ function get_dep(){ echo -e "APT system detected" echo "---------------------" +wheel true & +WPID=$! apt-get update 1> /dev/null +disown $WPID +kill $WPID &> /dev/null + if [ $# -eq 1 ]; then if $PRIVSOFT; then diff --git a/lib/installers/pacman.sh b/lib/installers/pacman.sh index 869ee70..8154713 100644 --- a/lib/installers/pacman.sh +++ b/lib/installers/pacman.sh @@ -19,7 +19,11 @@ function get_dep(){ echo -e "Pacman system detected" echo "---------------------" +wheel true & +WPID=$! pacman -F -y 1> /dev/null +disown $WPID +kill $WPID &> /dev/null if [ $# -eq 1 ]; then if $PRIVSOFT; then diff --git a/lib/installers/rpm.sh b/lib/installers/rpm.sh index 8bc152e..2eb2fbc 100644 --- a/lib/installers/rpm.sh +++ b/lib/installers/rpm.sh @@ -32,7 +32,11 @@ function install_centos(){ echo -e "YUM system detected" echo "---------------------" +wheel true & +WPID=$! yum -y -q update &> /dev/null +disown $WPID +kill $WPID &> /dev/null if [ $# -eq 1 ]; then install_centos diff --git a/lib/installers/zypper.sh b/lib/installers/zypper.sh index 9fc9d84..e3dcfae 100644 --- a/lib/installers/zypper.sh +++ b/lib/installers/zypper.sh @@ -20,7 +20,11 @@ function get_dep(){ echo -e "Zypper system detected" echo "---------------------" +wheel true & +WPID=$! zypper -q up -y 1> /dev/null +disown $WPID +kill $WPID &> /dev/null if [ $# -eq 1 ]; then if $PRIVSOFT; then diff --git a/lib/resources.sh b/lib/resources.sh index 8c5dacd..0310795 100644 --- a/lib/resources.sh +++ b/lib/resources.sh @@ -34,6 +34,8 @@ function check() echo "----------------------------------" for i in "7z" "bzip2" "gzip" "rar" "tar" "unrar" "unzip" "zip" do + wheel true & + WPID=$! if ! [ -x "$(command -v $i)" ] then echo -e "$i\t\t\t\e[91mNot Installed\e[0m" @@ -41,6 +43,8 @@ function check() else echo -e "$i\t\t\t\e[32mInstalled\e[0m" fi + disown $WPID + kill $WPID &> /dev/null done if $a