mirror of
				https://github.com/pelican-eggs/eggs.git
				synced 2025-11-03 10:28:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			383 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			383 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
## this is a simple script to validate a download url actaully exists
 | 
						|
 | 
						|
if [ ! -z "${DOWNLOAD_URL}" ]; then 
 | 
						|
    if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
 | 
						|
        echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
 | 
						|
        DOWNLOAD_LINK=${DOWNLOAD_URL}
 | 
						|
    else        
 | 
						|
        echo -e "link is invalid closing out"
 | 
						|
        exit 2
 | 
						|
    fi
 | 
						|
fi |