From 11981bd92c23aeb4e602f1035cf148762ec58245 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Tue, 1 Nov 2022 21:45:25 +0000 Subject: [PATCH] Update dotfiles/.local/motd.sh, dotfiles/.local/functions --- dotfiles/.local/functions | 8 -------- dotfiles/.local/motd.sh | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/dotfiles/.local/functions b/dotfiles/.local/functions index b97f693d..b7e088eb 100644 --- a/dotfiles/.local/functions +++ b/dotfiles/.local/functions @@ -96,11 +96,3 @@ transfer() { curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null fi } - -### Helpers for MOTD -dnf() { - command dnf "$@" - (mkdir -p "$HOME/.local/labs" > /dev/null &) - (command 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" &) -} diff --git a/dotfiles/.local/motd.sh b/dotfiles/.local/motd.sh index ef8e1840..e37b065c 100644 --- a/dotfiles/.local/motd.sh +++ b/dotfiles/.local/motd.sh @@ -533,7 +533,8 @@ print_updates() { fi printf " \\033[%sm%s \\033[0m %s\\n" "$updates_color" "$updates_icon" "$updates_message" - elif [ -f /usr/bin/dnf ]; then + elif [ -f /usr/bin/dnf_TODO ]; then + # TODO - Find way of quickly acquiring details mkdir -p "$HOME/.local/labs" > /dev/null (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" &)