mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 00:50:51 +00:00
14 lines
359 B
Bash
Executable File
14 lines
359 B
Bash
Executable File
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!"
|