From a5c704afd70a4c9cfb5ce9bb2a53ac5b06ba9bed Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 31 Oct 2022 22:09:55 +0000 Subject: [PATCH] Update dotfiles/.local/motd.sh --- dotfiles/.local/motd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index b634bb72..76c9d765 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -541,8 +541,8 @@ print_updates() { printf " \\033[1;37mUpdates:\\033[0m\\n" mkdir -p "$HOME/.local/labs" > /dev/null - dnf list updates | grep updates | wc -l > "$HOME/.local/labs/dnf-updates-reg" & - dnf updateinfo list --security --available | grep '/Sec. ' | wc -l > "$HOME/.local/labs/dnf-updates-sec" & + command dnf list updates | grep updates | wc -l > "$HOME/.local/labs/dnf-updates-reg" & + command dnf updateinfo list --security --available | grep '/Sec. ' | wc -l > "$HOME/.local/labs/dnf-updates-sec" & updates_count_security="0" updates_count_reg="0" if [ -f "$HOME/.local/labs/dnf-updates-sec" ]; then