summaryrefslogtreecommitdiff
path: root/parabola-mirror-lastupdates
blob: a4b735630e3a40cce42a9ed24fb825ab6139cd06 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# Quickly get Parabola mirror repositories update times
# It uses the file "lastupdate"
# WARNING: it only updates on Parabola-specific changes (it does not reflect new or upgraded Arch packages)

grep -Po 'Server = \Khttp.?//.+(?=/\$repo)' /etc/pacman.d/mirrorlist | while read url ; do
    echo "=> Checking ${url}/lastupdate"
    date -u -d @"$(curl -s ${url}/lastupdate)"
done