Skip to content

Commit

Permalink
Fix 'Unknown argument -u for command needs-restarting' which started …
Browse files Browse the repository at this point in the history
…to appear after Fedora 40 to 41 upgrade
  • Loading branch information
vorburger committed Dec 28, 2024
1 parent c756331 commit eacf2b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotfiles/fish/conf.d/needs-restarting.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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 -r -u -s >/dev/null && not dnf needs-restarting -r -u -s && echo && uptime -p
test -f /usr/bin/dnf && not dnf needs-restarting -r -s >/dev/null && not dnf needs-restarting -r -s && echo && uptime -p

# On Debian
test -f /usr/sbin/needrestart && /usr/sbin/needrestart
Expand Down

0 comments on commit eacf2b5

Please sign in to comment.