diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index ee03fbde..3a1bc4e2 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -2,7 +2,7 @@ echo -if [[ ! -d /usr/lib/modules/$(uname -r) ]]; then +if find /usr/lib/modules -maxdepth 2 -name vmlinuz -newermt "$(uptime -s)" 2>/dev/null | grep -q .; then gum confirm "Linux kernel has been updated. Reboot?" && omarchy-system-reboot elif [[ -f $HOME/.local/state/omarchy/reboot-required ]]; then gum confirm "Updates require reboot. Ready?" && omarchy-system-reboot