linuxShortcuts/Pacman/updateRepositories.sh

14 lines
359 B
Bash
Raw Normal View History

2018-06-22 04:39:43 +00:00
echo -n Please type your sudo password:
read -s sudoPass
echo;
echo "$sudoPass" | sudo -S pacman-mirrors -g
echo
echo Updating with Pacman...
echo
echo "$sudoPass" | sudo -S pacman -Syu --color always
echo;
aurman -Su --color always
echo;
echo "$sudoPass" | yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
notify-send "Update script has finished!"