run: tmux fixup

This commit is contained in:
Gilles Grandou 2024-05-12 16:26:00 +02:00
parent 6366aed886
commit dbbea3439c

2
run
View File

@ -60,7 +60,7 @@ case "$cmd" in
log)
if [ -n "$is_running" ]; then
tmp=$(mktemp)
tmux capture -b $session -p -S - >$tmp
tmux capture -t $session -p -S - >$tmp
if [ $(cat $tmp |wc -l) -gt 30 ]; then
head -10 $tmp
echo