mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-04 01:26:59 -05:00 
			
		
		
		
	Add log tail function
This commit is contained in:
		
							parent
							
								
									fe44303f33
								
							
						
					
					
						commit
						7ad9b70f09
					
				@ -157,6 +157,12 @@ case $# in
 | 
				
			|||||||
		exit
 | 
							exit
 | 
				
			||||||
	;;
 | 
						;;
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 | 
						logs)
 | 
				
			||||||
 | 
						
 | 
				
			||||||
 | 
							echo -e "${GREEN}Success:${NC} Logs Requested"
 | 
				
			||||||
 | 
							echo -e "Showing last three successful execution timestamps"
 | 
				
			||||||
 | 
							tail -n 3 ${SYNCING_LOG}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	*)
 | 
						*)
 | 
				
			||||||
	echo -e "${RED}'$1' is not a valid argument${NC}"
 | 
						echo -e "${RED}'$1' is not a valid argument${NC}"
 | 
				
			||||||
        echo "Usage: $0 {pull|push}"
 | 
					        echo "Usage: $0 {pull|push}"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user