diff --git a/home/.zshrc.d/02_upgrade_system.sh b/home/.zshrc.d/02_upgrade_system.sh index c2894d1..81f6afe 100755 --- a/home/.zshrc.d/02_upgrade_system.sh +++ b/home/.zshrc.d/02_upgrade_system.sh @@ -65,4 +65,12 @@ upgrade_system() { tmux source-file "${HOME}/.tmux.conf" fi ) + + if command -v fwupdmgr &> /dev/null; then + ( + set -e + fwupdmgr refresh + fwupdmgr upgrade + ) + fi }