mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	Display exit code
This commit is contained in:
		
							parent
							
								
									9a16ba85dd
								
							
						
					
					
						commit
						c80315c8b7
					
				@ -69,9 +69,8 @@ else
 | 
			
		||||
  PROGRESS="--progress=dot:giga"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"; then
 | 
			
		||||
  echo "ERROR: Failed to download $URL" && exit 69
 | 
			
		||||
fi
 | 
			
		||||
{ wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || :
 | 
			
		||||
(( rc != 0 )) && echo "ERROR: Failed to download $URL, reason: $rc" && exit 69
 | 
			
		||||
 | 
			
		||||
[ ! -f "$PAT" ] && echo "ERROR: Failed to download $URL" && exit 69
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user