Browse Source

0.6r6

pull/3/head
ale 3 years ago
parent
commit
d9278518de
6 changed files with 28 additions and 3 deletions
  1. +1
    -1
      lch
  2. +4
    -0
      lib/installers/deb.sh
  3. +5
    -1
      lib/installers/pacman.sh
  4. +4
    -0
      lib/installers/rpm.sh
  5. +5
    -1
      lib/installers/zypper.sh
  6. +9
    -0
      lib/resources.sh

+ 1
- 1
lch View File

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


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

@ -3,12 +3,16 @@
# Functions
function get_dep(){
wheel true &
WPID=$!
apt-get install -y $@ &> /dev/null
if [[ $? -ne 0 ]]; then
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
else
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
fi
disown $WPID
kill $WPID &> /dev/null
}
# Run


+ 5
- 1
lib/installers/pacman.sh View File

@ -3,19 +3,23 @@
# Function
function get_dep(){
wheel true &
WPID=$!
pacman -Sqy --noconfirm $@ &> /dev/null
if [[ $? -ne 0 ]]; then
if [[ $@ == "p7zip" ]]; then failed_install 7z; else failed_install $@; fi
else
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
fi
disown $WPID
kill $WPID &> /dev/null
}
# Run
echo -e "Pacman system detected"
echo "---------------------"
apt-get update 1> /dev/null
pacman -F -y 1> /dev/null
if [ $# -eq 1 ]; then
if $PRIVSOFT; then


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

@ -3,6 +3,8 @@
# Functions
function get_dep(){
wheel true &
WPID=$!
if [[ $@ == "p7zip-plugins" ]]; then
yum install -y -q $@ 1> /dev/null
else
@ -13,6 +15,8 @@ function get_dep(){
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
fi
fi
disown $WPID
kill $WPID &> /dev/null
}
function install_centos(){


+ 5
- 1
lib/installers/zypper.sh View File

@ -4,19 +4,23 @@
# Function
function get_dep(){
wheel true &
WPID=$!
zypper install -y $@ &> /dev/null
if [[ $? -ne 0 ]]; then
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
else
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
fi
disown $WPID
kill $WPID &> /dev/null
}
# Run
echo -e "Zypper system detected"
echo "---------------------"
apt-get update 1> /dev/null
zypper -q up -y 1> /dev/null
if [ $# -eq 1 ]; then
if $PRIVSOFT; then


+ 9
- 0
lib/resources.sh View File

@ -78,4 +78,13 @@ function complete_install(){
function failed_install(){
echo -e "$@:\t\t\t\e[91mFailed\e[0m"
}
function wheel() {
sp='/-\|'
while $1; do
printf '%.1s\b' "$sp"
sp=${sp#?}${sp%???}
sleep 0.1s
done
}

Loading…
Cancel
Save