dotfiles/scripts/.local/bin/update.sh
the_4n0nym0u53 67eac27d79
Major overhaul
- Make everything compatible with both Artix and Fedora
- Install script is now only for Artix
- Extra .zsh files are no longer dot files, makes sourcing from .zshrc easier
2022-01-08 17:56:42 +01:00

11 lines
372 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; }
return 0