Update echoes in update.sh

This commit is contained in:
Sam A. 2023-01-12 20:44:38 +01:00
parent 3366f26727
commit 361ad1c8b7
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -2,20 +2,19 @@
[ "$(lsb_release -si)" = "Artix" ] && paru [ "$(lsb_release -si)" = "Artix" ] && paru
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade [ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
echo
command -v flatpak >/dev/null 2>&1 && command -v flatpak >/dev/null 2>&1 &&
{ echo; flatpak update; } { flatpak update; echo; }
command -v npm >/dev/null 2>&1 && command -v npm >/dev/null 2>&1 &&
{ echo; npm update --location="global"; } { npm update --location="global"; echo; }
command -v rustup >/dev/null 2>&1 && command -v rustup >/dev/null 2>&1 &&
{ echo; rustup update; } { rustup update; echo; }
command -v nvim >/dev/null 2>&1 && command -v nvim >/dev/null 2>&1 &&
{ echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } { nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
command -v docker >/dev/null 2>&1 && command -v docker >/dev/null 2>&1 && [ "$(sudo docker images | wc -l)" -gt 1 ] &&
{ echo; [ "$(sudo docker images | wc -l)" -gt 1 ] && { sudo sh -c "docker images |
sudo sh -c "docker images | awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' | xargs -l docker pull"; echo; }
xargs -l docker pull"; }
echo
zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull" zsh -ic "antidote update && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"