#!/usr/bin/env bash
# 
# SCRIPT NAME:
# update-mirror
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# Updates pacman mirror list using reflector
#
# USAGE:
# ./update-mirror
. /home/severin/.local/bin/utils

{
    print_time_log "update-mirror" "Update pacman mirror list"
    reflector --country Switzerland --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
} >> /home/severin/.local/log/cron.log 2>&1