mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Wget progress type
Wget progress type
This commit is contained in:
		
						commit
						1531df2d41
					
				@ -60,11 +60,13 @@ rm -f "$PAT"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Check if running with interactive TTY or redirected to docker log
 | 
					# Check if running with interactive TTY or redirected to docker log
 | 
				
			||||||
if [ -t 1 ]; then
 | 
					if [ -t 1 ]; then
 | 
				
			||||||
  wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress --progress=bar:noscroll
 | 
					  PROGRESS="--progress=bar:noscroll"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
  wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress --progress=dot:giga
 | 
					  PROGRESS="--progress=dot:giga"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					wget "$URL" -O "$PAT" -q --no-check-certificate --show-progress "$PROGRESS"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ ! -f "$PAT" ] && echo "Download failed" && exit 61
 | 
					[ ! -f "$PAT" ] && echo "Download failed" && exit 61
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SIZE=$(stat -c%s "$PAT")
 | 
					SIZE=$(stat -c%s "$PAT")
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user