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() {
|
2021-02-20 02:23:12 +00:00
|
|
|
sudo $1
|
2018-08-09 03:34:40 +00:00
|
|
|
echo
|
|
|
|
}
|
|
|
|
|
2021-03-24 02:14:15 +00:00
|
|
|
s -v
|
|
|
|
bold "Pacman-mirrors -c"
|
|
|
|
s "pacman-mirrors -c Brazil"
|
|
|
|
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist"
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2021-02-20 02:23:12 +00:00
|
|
|
s -v
|
|
|
|
echo
|
|
|
|
bold "Updating..."
|
|
|
|
yay -Syu --sudoloop --noconfirm --nobatchinstall --cleanafter
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2018-08-09 02:56:36 +00:00
|
|
|
bold "Cleaning stuff..."
|
2021-02-20 02:23:12 +00:00
|
|
|
s -v
|
2018-10-25 17:27:06 +00:00
|
|
|
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
2021-02-20 02:23:12 +00:00
|
|
|
s -v
|
|
|
|
yay -Sc --noconfirm
|
2018-08-09 17:45:26 +00:00
|
|
|
|
2021-02-20 02:23:12 +00:00
|
|
|
s -k
|
2018-06-22 04:48:41 +00:00
|
|
|
notify-send "Update script has finished!"
|