dotfiles/scripts/.local/bin/update.sh
the_4n0nym0u53 b9bc23d46e
Shell scripts:
- Improve install script with for loop
- Change hash bangs to /bin/sh because I've symlinked /bin/sh to dash, they should work with bash as well due to POSIX compliance
2022-01-08 16:24:17 +01:00

9 lines
362 B
Bash
Executable file

#!/bin/sh
[ "$(lsb_release -si)" = "Artix" ] && paru
[ "$(lsb_release -si)" = "Fedora" ] && sudo dnf upgrade
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; }