mirror of
				https://github.com/vmstan/gravity-sync.git
				synced 2025-11-03 17:17:03 -05:00 
			
		
		
		
	Failure detection for curl
This commit is contained in:
		
							parent
							
								
									a6de8d21f0
								
							
						
					
					
						commit
						0b3653fe2d
					
				@ -890,8 +890,13 @@ function show_version {
 | 
				
			|||||||
	MESSAGE="Running Version: ${VERSION}"
 | 
						MESSAGE="Running Version: ${VERSION}"
 | 
				
			||||||
	echo_info
 | 
						echo_info
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	GITVERSION=$(curl -s https://raw.githubusercontent.com/vmstan/gravity-sync/master/VERSION)
 | 
						GITVERSION=$(curl -sf https://raw.githubusercontent.com/vmstan/gravity-sync/master/VERSION)
 | 
				
			||||||
	MESSAGE="Latest Version: ${GITVERSION}"
 | 
						if [ -z "$GITVERSION" ]
 | 
				
			||||||
 | 
						then
 | 
				
			||||||
 | 
							MESSAGE="Latest Version: Unable to Check"
 | 
				
			||||||
 | 
						else
 | 
				
			||||||
 | 
							MESSAGE="Latest Version: ${GITVERSION}"
 | 
				
			||||||
 | 
						fi
 | 
				
			||||||
	echo_info
 | 
						echo_info
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user