Last active
February 9, 2021 09:07
-
-
Save rblaine95/26269f58141724ccbc196509bb754ed8 to your computer and use it in GitHub Desktop.
Get the latest Arch Linux mirrorlist for the country that corresponds to your IP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -s https://archlinux.org/mirrorlist/\?country\=$(curl -s https://ifconfig.co/country-iso)\&protocol\=http\&protocol\=https\&ip_version\=4 | sed 's/\#S/S/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment