Update update.sh
This commit is contained in:
parent
5e07810cda
commit
046f4b8de0
|
@ -1,8 +1,7 @@
|
|||
#!/usr/bin/env dash
|
||||
|
||||
[ "$(lsb_release -si)" = "Artix" ] && paru -Syu
|
||||
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf --refresh upgrade
|
||||
echo
|
||||
[ "$(lsb_release -si)" = "Artix" ] && { paru -Syu; echo; }
|
||||
[ "$(lsb_release -si)" = "Fedora" ] && { sudo dnf --refresh upgrade; echo; }
|
||||
|
||||
command -v flatpak >/dev/null 2>&1 &&
|
||||
{ flatpak update; echo; }
|
||||
|
@ -12,9 +11,9 @@ command -v rustup >/dev/null 2>&1 &&
|
|||
{ rustup update; echo; }
|
||||
command -v nvim >/dev/null 2>&1 &&
|
||||
{ nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; }
|
||||
command -v docker >/dev/null 2>&1 && [ "$(sudo docker images | wc -l)" -gt 1 ] &&
|
||||
command -v docker >/dev/null 2>&1 && [ -n "$(sudo docker images -q)" ] &&
|
||||
{ sudo sh -c "docker images |
|
||||
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
|
||||
xargs -l docker pull"; echo; }
|
||||
awk '(NR>1) && (\$2!~/none/) {print \$1\":\"\$2}' |
|
||||
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"
|
||||
|
|
Loading…
Reference in a new issue