Formatting update file

This commit is contained in:
Bruno F. Fontes 2018-08-09 14:45:26 -03:00
parent 3ce74c1340
commit 3e25a1aef2
Signed by: brunofontes
GPG Key ID: EE3447CE80048495

View File

@ -10,19 +10,22 @@ function s() {
echo
}
sudo -k
echo -n Please type your sudo password:
read -s sudoPass
echo; echo
echo
s "echo '**********'"
bold "Pacman-mirrors -g"
s "pacman-mirrors -g"
echo
bold "Updating with PACMAN..."
s "pacman -Syu --color always"
echo
bold "Updating with AURMAN..."
aurman -Su --noedit --noconfirm --color always
echo
bold "Cleaning stuff..."
echo -e "$sudoPass\n" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
echo
notify-send "Update script has finished!"