From fa561a65d93ea541036924b82abd8c6a9c01f956 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Tue, 1 Sep 2020 21:51:47 -0400 Subject: [PATCH] Add fwupdmgr to upgrade_system --- home/.zshrc.d/02_upgrade_system.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 }