From dee17966038de4e0ece2dd5168ac5c7eca8dce8d Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Sun, 19 Jan 2025 12:37:28 +0100 Subject: [PATCH] fedora: dnf needs-restarting --cacheonly (x2) --- dotfiles/fish/conf.d/needs-restarting.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/fish/conf.d/needs-restarting.fish b/dotfiles/fish/conf.d/needs-restarting.fish index 7c481d6..4f467c1 100644 --- a/dotfiles/fish/conf.d/needs-restarting.fish +++ b/dotfiles/fish/conf.d/needs-restarting.fish @@ -10,7 +10,7 @@ if status is-interactive if not test -f $daily_flag_file; or not test (date -r $daily_flag_file +%Y-%m-%d) = $today # On Fedora (from https://bugzilla.redhat.com/show_bug.cgi?id=2048113) - test -f /usr/bin/dnf && not dnf needs-restarting --cacheonly -r -s >/dev/null && not dnf needs-restarting -r -s && echo && uptime -p + test -f /usr/bin/dnf && not dnf needs-restarting --cacheonly -r -s >/dev/null && not dnf needs-restarting --cacheonly -r -s && echo && uptime -p # On Debian test -f /usr/sbin/needrestart && /usr/sbin/needrestart