ci: switch back to send-keys

This commit is contained in:
Aaron Bieber 2023-01-29 10:13:35 -07:00
parent bcc927b668
commit 38bede945b
No known key found for this signature in database

6
ci
View File

@ -9,7 +9,7 @@ set -x
NAME="CI" NAME="CI"
if ! tmux ls | grep -q "^${NAME}:"; then if ! tmux ls | grep -q "^${NAME}:"; then
tmux -2 new-session -d -s ${NAME} "./ci run" tmux -2 new-session -d -s ${NAME}
fi fi
tmux -2 attach-session -t $NAME tmux -2 attach-session -t $NAME
@ -32,4 +32,8 @@ if [ "$CMD" = "run" ]; then
git checkout -b "${ci_branch}" || handle_co_fail git checkout -b "${ci_branch}" || handle_co_fail
nix flake update --commit-lock-file || handle_update_fail nix flake update --commit-lock-file || handle_update_fail
nix flake check || handle_check_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 fi