2018-08-09 02:56:36 +00:00
|
|
|
BOLD='\e[91m'
|
|
|
|
NC='\e[39m'
|
|
|
|
|
|
|
|
function bold() {
|
|
|
|
echo -e "${BOLD}$1${NC}"
|
|
|
|
}
|
|
|
|
|
2018-08-09 03:34:40 +00:00
|
|
|
function s() {
|
|
|
|
echo -e "$sudoPass\n" | sudo -S $1
|
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
2018-08-09 17:45:26 +00:00
|
|
|
sudo -k
|
2018-06-22 04:39:43 +00:00
|
|
|
echo -n Please type your sudo password:
|
|
|
|
read -s sudoPass
|
2018-08-09 17:45:26 +00:00
|
|
|
echo
|
|
|
|
s "echo '**********'"
|
|
|
|
|
2018-10-25 17:27:06 +00:00
|
|
|
bold "Pacman-mirrors -c"
|
2018-10-25 23:25:36 +00:00
|
|
|
s "pacman-mirrors -c Brazil"
|
2018-11-17 00:27:16 +00:00
|
|
|
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist"
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2018-10-25 17:27:06 +00:00
|
|
|
#bold "Updating with PACMAN..."
|
2019-07-15 15:04:57 +00:00
|
|
|
#s "echo"
|
|
|
|
#yes | sudo pacman -Syyu --color always
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2018-08-09 03:34:40 +00:00
|
|
|
bold "Updating with AURMAN..."
|
2018-10-25 17:27:06 +00:00
|
|
|
s "echo"
|
2018-07-26 14:22:04 +00:00
|
|
|
aurman -Su --noedit --noconfirm --color always
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2018-08-09 02:56:36 +00:00
|
|
|
bold "Cleaning stuff..."
|
2018-10-25 17:27:06 +00:00
|
|
|
s "echo"
|
|
|
|
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2018-06-22 04:48:41 +00:00
|
|
|
notify-send "Update script has finished!"
|