This commit is contained in:
Gustavo Adolfo Mesa Roldán
2020-10-03 11:11:35 +02:00
parent fddc1481ef
commit 3c84ab9231
3 changed files with 59 additions and 26 deletions
+35
View File
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Function
function install(){
echo "$@:"
# Busca la manera de capturar el error. Y mostrar mensaje en rojo.
apt-get install -y $@ 1> /dev/null
echo "e[32mInstalled\e[0m"
}
# Run
echo -e "APT system detected"
echo $@
echo $1
echo $0
echo $PRIVSOFT
echo "----------"
install $2
if [ $# -eq 1 ]; then
install tar
install bzip2
install gzip
install zip
install unzip
install p7zip-full p7zip-rar
else
#Tropa
fi
# apt-get install -y tar bzip2 gzip zip unzip p7zip-full p7zip-rar 1> /dev/null