mirror of
https://github.com/skoelle/kctl-tui.git
synced 2026-09-17 20:10:24 +00:00
Fix: kill stale tmux session as separate command, not in chain
tmux aborts the entire command chain when kill-session fails (no existing session). This caused 'no current target' error on Linux. The kill-session is now a separate exec.Command() call before starting the tmux chain, ignoring any error.
This commit is contained in:
@@ -89,7 +89,8 @@ not cover: **redeploy** and **secrets diff**.
|
||||
Example startup command (generic placeholders):
|
||||
|
||||
```
|
||||
tmux kill-session -t kctl \; \
|
||||
# Kill stale session first (separate command — tmux aborts on kill-session error).
|
||||
tmux kill-session -t kctl
|
||||
tmux new-session -d -s kctl \
|
||||
-- "kctl-tui panel --context=$CTX_A --ns=$NS --team=$TEAM" \; \
|
||||
set-option -t kctl remain-on-exit on \; \
|
||||
|
||||
Reference in New Issue
Block a user