#!/bin/bash
if [ $2 = up ]; then
  /usr/bin/reflector --protocol https --age 1 --sort rate --save /etc/pacman.d/mirrorlist
fi
