mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 00:50:51 +00:00
update.sh: has fewer unecessary error messages
This commit is contained in:
parent
fbb551377b
commit
7c8be4432a
@ -2,29 +2,27 @@ BOLD='\e[91m'
|
|||||||
NC='\e[39m'
|
NC='\e[39m'
|
||||||
|
|
||||||
function bold() {
|
function bold() {
|
||||||
echo -e "${BOLD}$1${NC}"
|
echo -e "\n\n${BOLD}$1${NC}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function s() {
|
function s() {
|
||||||
sudo $1
|
sudo $*
|
||||||
echo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
s -v
|
s -v
|
||||||
bold "Pacman-mirrors -c"
|
bold "Pacman-mirrors -c"
|
||||||
s "pacman-mirrors -c Brazil"
|
s "pacman-mirrors -c Brazil" 2>/dev/null
|
||||||
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist"
|
s "reflector -l 30 -f 10 --save /etc/pacman.d/mirrorlist" 2>/dev/null
|
||||||
|
|
||||||
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
|
||||||
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always)
|
yes | (sudo -S pacman -Rns $(pacman -Qtdq) --color always 2>/dev/null)
|
||||||
s -v
|
s -v
|
||||||
yay -Sc --noconfirm
|
yay -Sc --noconfirm 2>/dev/null
|
||||||
|
|
||||||
s -k
|
s -k
|
||||||
notify-send "Update script has finished!"
|
notify-send "Update script has finished!"
|
||||||
|
Loading…
Reference in New Issue
Block a user