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