mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2025-04-20 09:57:12 +00:00
Compare commits
No commits in common. "00a0ebe0f8f44acea2294e22685c6368b66dfd4f" and "fbb551377b7135580b039d35226348bb77bd88a4" have entirely different histories.
00a0ebe0f8
...
fbb551377b
@ -2,30 +2,29 @@ BOLD='\e[91m'
|
|||||||
NC='\e[39m'
|
NC='\e[39m'
|
||||||
|
|
||||||
function bold() {
|
function bold() {
|
||||||
echo -e "\n\n${BOLD}$1${NC}"
|
echo -e "${BOLD}$1${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function s() {
|
function s() {
|
||||||
sudo $*
|
sudo $1
|
||||||
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
s -v
|
s -v
|
||||||
bold "Pacman-mirrors -c"
|
bold "Pacman-mirrors -c"
|
||||||
s "pacman-mirrors -c Brazil" 2>/dev/null
|
s "pacman-mirrors -c Brazil"
|
||||||
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist" 2>/dev/null
|
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist"
|
||||||
|
|
||||||
# From now on, exit when any command fails
|
|
||||||
set -e
|
|
||||||
|
|
||||||
s -v
|
s -v
|
||||||
|
echo
|
||||||
bold "Updating..."
|
bold "Updating..."
|
||||||
yay -Syu --sudoloop --noconfirm --nobatchinstall --cleanafter
|
yay -Syu --sudoloop --noconfirm --nobatchinstall --cleanafter
|
||||||
|
|
||||||
bold "Cleaning stuff..."
|
bold "Cleaning stuff..."
|
||||||
s -v
|
s -v
|
||||||
yay -Sc --noconfirm 2>/dev/null
|
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
||||||
s -v
|
s -v
|
||||||
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always 2>/dev/null)
|
yay -Sc --noconfirm
|
||||||
|
|
||||||
s -k
|
s -k
|
||||||
notify-send "Update script has finished!"
|
notify-send "Update script has finished!"
|
||||||
|
Loading…
Reference in New Issue
Block a user