You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
363 B

  1. #!/usr/bin/env bash
  2. set -x
  3. set -e
  4. # Create a backup of the mirror list
  5. mkdir -p $HOME/backup
  6. cp -vf /etc/pacman.d/mirrorlist $HOME/backup/mirrorlist-$(date +%Y-%m-%d).bak
  7. sudo curl -o /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/all/
  8. sudo reflector --verbose --country 'United States' -l 20 -p http --sort rate --save /etc/pacman.d/mirrorlist