Browse Source

0.6r7 - Stable

pull/3/head
Gustavo Adolfo Mesa Roldán 3 years ago
parent
commit
667e00baea
7 changed files with 23 additions and 2 deletions
  1. +1
    -1
      lch
  2. +1
    -1
      lib/installer.sh
  3. +5
    -0
      lib/installers/deb.sh
  4. +4
    -0
      lib/installers/pacman.sh
  5. +4
    -0
      lib/installers/rpm.sh
  6. +4
    -0
      lib/installers/zypper.sh
  7. +4
    -0
      lib/resources.sh

+ 1
- 1
lch View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=0.6r6
VERSION=0.6r7
DEST=$1
shift 1
ORIG=$@


+ 1
- 1
lib/installer.sh View File

@ -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)" ]


+ 5
- 0
lib/installers/deb.sh View File

@ -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


+ 4
- 0
lib/installers/pacman.sh View File

@ -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


+ 4
- 0
lib/installers/rpm.sh View File

@ -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


+ 4
- 0
lib/installers/zypper.sh View File

@ -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


+ 4
- 0
lib/resources.sh View File

@ -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


Loading…
Cancel
Save