From b08b419bfca1b85588713cf3d43cd23d21a13561 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 2 Jan 2026 19:49:52 -0800 Subject: [PATCH] Use encapsulated reboot command --- bin/omarchy-update-restart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-update-restart b/bin/omarchy-update-restart index 2811e937..b6b73afe 100755 --- a/bin/omarchy-update-restart +++ b/bin/omarchy-update-restart @@ -1,10 +1,10 @@ #!/bin/bash if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then - gum confirm "Linux kernel has been updated. Reboot?" && omarchy-state clear re*-required && sudo reboot now + 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-state clear re*-required && sudo reboot now + gum confirm "Updates require reboot. Ready?" && omarchy-cmd-reboot fi for file in "$HOME"/.local/state/omarchy/restart-*-required; do