mirror of
https://github.com/obra/superpowers.git
synced 2026-08-21 06:33:40 +00:00
docs(plans): gate tmux ownership on creation
Keep the implementation plan's copyable tmux recipe aligned with the reviewed skill. A failed new-session now exits while ownership is false; only successful creation reaches the ownership assignment.
This commit is contained in:
parent
602ba17888
commit
2832e01ac5
1 changed files with 4 additions and 1 deletions
|
|
@ -255,7 +255,10 @@ cleanup() {
|
|||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
tmux new-session -d -s "$session" -x 200 -y 50 "$command 2>\"$stderr_log\""
|
||||
if ! tmux new-session -d -s "$session" -x 200 -y 50 "$command 2>\"$stderr_log\""; then
|
||||
echo "failed to create tmux session: $session" >&2
|
||||
exit 1
|
||||
fi
|
||||
session_owned=1
|
||||
tmux send-keys -t "$session" -l "literal text"
|
||||
tmux send-keys -t "$session" Enter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue