0.6r6
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
VERSION=0.6r5
|
VERSION=0.6r6
|
||||||
DEST=$1
|
DEST=$1
|
||||||
shift 1
|
shift 1
|
||||||
ORIG=$@
|
ORIG=$@
|
||||||
|
|||||||
@@ -3,12 +3,16 @@
|
|||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
function get_dep(){
|
function get_dep(){
|
||||||
|
wheel true &
|
||||||
|
WPID=$!
|
||||||
apt-get install -y $@ &> /dev/null
|
apt-get install -y $@ &> /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
|
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
|
||||||
else
|
else
|
||||||
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
|
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
|
||||||
fi
|
fi
|
||||||
|
disown $WPID
|
||||||
|
kill $WPID &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
|
|||||||
@@ -3,19 +3,23 @@
|
|||||||
# Function
|
# Function
|
||||||
|
|
||||||
function get_dep(){
|
function get_dep(){
|
||||||
|
wheel true &
|
||||||
|
WPID=$!
|
||||||
pacman -Sqy --noconfirm $@ &> /dev/null
|
pacman -Sqy --noconfirm $@ &> /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
if [[ $@ == "p7zip" ]]; then failed_install 7z; else failed_install $@; fi
|
if [[ $@ == "p7zip" ]]; then failed_install 7z; else failed_install $@; fi
|
||||||
else
|
else
|
||||||
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
|
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
|
||||||
fi
|
fi
|
||||||
|
disown $WPID
|
||||||
|
kill $WPID &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
echo -e "Pacman system detected"
|
echo -e "Pacman system detected"
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
|
|
||||||
apt-get update 1> /dev/null
|
pacman -F -y 1> /dev/null
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
if $PRIVSOFT; then
|
if $PRIVSOFT; then
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Functions
|
# Functions
|
||||||
|
|
||||||
function get_dep(){
|
function get_dep(){
|
||||||
|
wheel true &
|
||||||
|
WPID=$!
|
||||||
if [[ $@ == "p7zip-plugins" ]]; then
|
if [[ $@ == "p7zip-plugins" ]]; then
|
||||||
yum install -y -q $@ 1> /dev/null
|
yum install -y -q $@ 1> /dev/null
|
||||||
else
|
else
|
||||||
@@ -13,6 +15,8 @@ function get_dep(){
|
|||||||
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
|
if [[ $@ == "p7zip" ]]; then complete_install 7z; else complete_install $@; fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
disown $WPID
|
||||||
|
kill $WPID &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_centos(){
|
function install_centos(){
|
||||||
|
|||||||
@@ -4,19 +4,23 @@
|
|||||||
# Function
|
# Function
|
||||||
|
|
||||||
function get_dep(){
|
function get_dep(){
|
||||||
|
wheel true &
|
||||||
|
WPID=$!
|
||||||
zypper install -y $@ &> /dev/null
|
zypper install -y $@ &> /dev/null
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
|
if [[ $@ == "p7zip-full" ]]; then failed_install 7z; else failed_install $@; fi
|
||||||
else
|
else
|
||||||
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
|
if [[ $@ == "p7zip-full" ]]; then complete_install 7z; else complete_install $@; fi
|
||||||
fi
|
fi
|
||||||
|
disown $WPID
|
||||||
|
kill $WPID &> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
echo -e "Zypper system detected"
|
echo -e "Zypper system detected"
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
|
|
||||||
apt-get update 1> /dev/null
|
zypper -q up -y 1> /dev/null
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
if $PRIVSOFT; then
|
if $PRIVSOFT; then
|
||||||
|
|||||||
@@ -78,4 +78,13 @@ function complete_install(){
|
|||||||
|
|
||||||
function failed_install(){
|
function failed_install(){
|
||||||
echo -e "$@:\t\t\t\e[91mFailed\e[0m"
|
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