2022-01-08 20:59:42 +00:00
|
|
|
#!/bin/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
|
|
|
|
fi
|
2022-01-08 15:24:17 +00:00
|
|
|
|
|
|
|
command -v flatpak >/dev/null 2>&1 && { echo; flatpak update; }
|
|
|
|
command -v npm >/dev/null 2>&1 && { echo; npm up -g; }
|
|
|
|
command -v docker >/dev/null 2>&1 && { echo; docker images | awk '(NR>1) && ($2!~/none/) {print $1":"$2}' | xargs -l docker pull; }
|
2022-01-08 16:56:42 +00:00
|
|
|
|
2022-01-08 18:46:40 +00:00
|
|
|
exit 0
|