Added utility script to sort mirrors by speed
This commit is contained in:
		
							
								
								
									
										12
									
								
								fastestmirror.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								fastestmirror.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
data=""
 | 
			
		||||
for s in $(wget -qO- https://mirrors.alpinelinux.org/mirrors.txt); do
 | 
			
		||||
        t=$(time -f "%E" wget -q $s/MIRRORS.txt -O /dev/null 2>&1)
 | 
			
		||||
        echo "$s was $t"
 | 
			
		||||
        data="$data$t $s\n"
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
echo "===RESULTS==="
 | 
			
		||||
 | 
			
		||||
echo -e $data | sort
 | 
			
		||||
		Reference in New Issue
	
	Block a user