2022-03-06 15:22:37 +00:00
|
|
|
#!/usr/bin/env dash
|
2022-01-08 15:24:17 +00:00
|
|
|
|
2022-01-23 18:26:28 +00:00
|
|
|
if [ "$(uname -o)" = "Android" ]; then
|
|
|
|
pkg upgrade
|
|
|
|
elif [ "$(uname -o)" = "GNU/Linux" ]; then
|
|
|
|
[ "$(lsb_release -si)" = "Artix" ] && paru
|
|
|
|
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
|
2022-02-28 22:00:47 +00:00
|
|
|
|
|
|
|
if [ "$(lsb_release -si)" = "Debian" ] || [ "$(lsb_release -si)" = "Ubuntu" ]; then
|
|
|
|
sudo apt update
|
|
|
|
echo
|
2022-04-03 11:35:07 +00:00
|
|
|
sudo apt upgrade --purge
|
2022-02-28 22:00:47 +00:00
|
|
|
echo
|
|
|
|
sudo apt autoremove --purge --yes
|
|
|
|
fi
|
2022-01-23 18:26:28 +00:00
|
|
|
fi
|
2022-01-08 15:24:17 +00:00
|
|
|
|
2022-06-06 13:48:21 +00:00
|
|
|
command -v flatpak >/dev/null 2>&1 \
|
|
|
|
&& { echo; flatpak update; } || true
|
|
|
|
|
|
|
|
command -v npm >/dev/null 2>&1 \
|
|
|
|
&& { echo; npm up -g; } || true
|
|
|
|
|
2022-06-10 23:19:18 +00:00
|
|
|
command -v rustup >/dev/null 2>&1 \
|
|
|
|
&& { echo; rustup update; } || true
|
|
|
|
|
2022-06-06 13:48:21 +00:00
|
|
|
command -v nvim >/dev/null 2>&1 \
|
|
|
|
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
|
|
|
|
|
|
|
|
command -v docker >/dev/null 2>&1 && [ "$(docker images | wc -l)" -gt 1 ] \
|
|
|
|
&& { echo; docker images \
|
|
|
|
| awk '(NR>1) && ($2!~/none/) {print $1":"$2}' \
|
|
|
|
| xargs -l docker pull; } || true
|
2022-05-22 16:08:26 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
|
2022-07-02 19:48:51 +00:00
|
|
|
zsh -ic "antidote update && fg &>/dev/null && echo && git -C $(dirname -- "$(readlink -e "$0")") pull"
|