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" &)