0.6r7 - Stable
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
VERSION=0.6r6
|
||||
VERSION=0.6r7
|
||||
DEST=$1
|
||||
shift 1
|
||||
ORIG=$@
|
||||
|
||||
+1
-1
@@ -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)" ]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user