From 38bede945b558b0b7c95d6adf99764c71f4b80da Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 29 Jan 2023 10:13:35 -0700 Subject: [PATCH] ci: switch back to send-keys --- ci | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci b/ci index 878d0a3..ea4dc8b 100755 --- a/ci +++ b/ci @@ -9,7 +9,7 @@ set -x NAME="CI" if ! tmux ls | grep -q "^${NAME}:"; then - tmux -2 new-session -d -s ${NAME} "./ci run" + tmux -2 new-session -d -s ${NAME} fi tmux -2 attach-session -t $NAME @@ -32,4 +32,8 @@ if [ "$CMD" = "run" ]; then git checkout -b "${ci_branch}" || handle_co_fail nix flake update --commit-lock-file || handle_update_fail nix flake check || handle_check_fail +else + echo 'running "./ci run"' + tmux select-window -t "=${NAME}:0" + tmux send-keys -t "=${NAME}:0" "./ci run" ENTER fi