2018-08-09 02:56:36 +00:00
|
|
|
BOLD='\e[91m'
|
|
|
|
NC='\e[39m'
|
|
|
|
|
|
|
|
function bold() {
|
|
|
|
echo -e "${BOLD}$1${NC}"
|
|
|
|
}
|
|
|
|
|
2018-06-22 04:39:43 +00:00
|
|
|
echo -n Please type your sudo password:
|
|
|
|
read -s sudoPass
|
2018-06-11 16:41:20 +00:00
|
|
|
echo
|
|
|
|
echo
|
2018-08-09 02:56:36 +00:00
|
|
|
bold "Pacman-mirrors -g"
|
|
|
|
echo
|
|
|
|
echo "$sudoPass\n" | sudo -nS pacman-mirrors -g
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
bold "Updating with Pacman..."
|
|
|
|
echo
|
|
|
|
echo "$sudoPass\n" | sudo -nS pacman -Syu --color always
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
bold "Updating with aurman..."
|
|
|
|
echo
|
2018-07-26 14:22:04 +00:00
|
|
|
aurman -Su --noedit --noconfirm --color always
|
2018-08-09 02:56:36 +00:00
|
|
|
echo
|
|
|
|
echo
|
|
|
|
bold "Cleaning stuff..."
|
|
|
|
echo
|
|
|
|
echo "$sudoPass\n" | yes | (sudo -nS pacman -Rns $(pacman -Qtdq) --color always)
|
|
|
|
echo
|
2018-06-22 04:48:41 +00:00
|
|
|
notify-send "Update script has finished!"
|