Update dotfiles/.local/motd.sh

This commit is contained in:
Brian Zalewski 2022-10-31 22:09:55 +00:00
parent 7b0ec069b7
commit a5c704afd7

View file

@ -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