run: tmux fixup
This commit is contained in:
		
							
								
								
									
										2
									
								
								run
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								run
									
									
									
									
									
								
							@@ -60,7 +60,7 @@ case "$cmd" in
 | 
				
			|||||||
    log)
 | 
					    log)
 | 
				
			||||||
        if [ -n "$is_running" ]; then
 | 
					        if [ -n "$is_running" ]; then
 | 
				
			||||||
            tmp=$(mktemp)
 | 
					            tmp=$(mktemp)
 | 
				
			||||||
            tmux capture -b $session -p -S - >$tmp
 | 
					            tmux capture -t $session -p -S - >$tmp
 | 
				
			||||||
            if [ $(cat $tmp |wc -l) -gt 30 ]; then
 | 
					            if [ $(cat $tmp |wc -l) -gt 30 ]; then
 | 
				
			||||||
                head -10 $tmp
 | 
					                head -10 $tmp
 | 
				
			||||||
                echo
 | 
					                echo
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user