0.6r6
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
VERSION=0.6r5
|
||||
VERSION=0.6r6
|
||||
DEST=$1
|
||||
shift 1
|
||||
ORIG=$@
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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(){
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -79,3 +79,12 @@ 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
|
||||
}
|
||||
Reference in New Issue
Block a user