This commit is contained in:
ale
2020-10-03 14:21:23 +02:00
parent 62cb38a046
commit d9278518de
6 changed files with 28 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
VERSION=0.6r5
VERSION=0.6r6
DEST=$1
shift 1
ORIG=$@
+4
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
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
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
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
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
}