From f2f306269a0276962b40e7b63c6f982ab90d47e1 Mon Sep 17 00:00:00 2001 From: Serpent <36471448+SerrpentDagger@users.noreply.github.com> Date: Mon, 9 Feb 2026 21:58:34 +0000 Subject: [PATCH] Avoid error if opencode isn't running. (#4566) --- bin/omarchy-restart-opencode | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-restart-opencode b/bin/omarchy-restart-opencode index 2ff22d3e..086eba9f 100755 --- a/bin/omarchy-restart-opencode +++ b/bin/omarchy-restart-opencode @@ -2,4 +2,6 @@ # Reload opencode configuration (used by the Omarchy theme switching). -killall -SIGUSR2 opencode +if pgrep -x opencode >/dev/null; then + killall -SIGUSR2 opencode +fi