From 0cc91ce71cdcfa41dc481655af8f1cb1c0a85316 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 20 Feb 2026 21:22:59 +0100 Subject: [PATCH] Simplify the kernel change check and make it work with any kernel Closes #3785 --- bin/omarchy-update-restart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index 2b6d85d4..2121d279 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -1,6 +1,6 @@ #!/bin/bash -if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then +if [ ! -d "/usr/lib/modules/$(uname -r)" ]; then gum confirm "Linux kernel has been updated. Reboot?" && omarchy-cmd-reboot elif [ -f "$HOME/.local/state/omarchy/reboot-required" ]; then gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot