index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-06-03 11:55:52 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-06-03 11:55:52 +0200 |
commit | b8752770452ffea0bf1ce21a8f9bef186ba8fc12 (patch) | |
tree | 1e677bad78932b9793bba8903d36604477b07818 | |
parent | e7df9a4f5aa42a5a59fe715365532cc9323c77e9 (diff) |
-rwxr-xr-x | bin/check-mirrors | 6 |
diff --git a/bin/check-mirrors b/bin/check-mirrors index aec33a0..8e782d5 100755 --- a/bin/check-mirrors +++ b/bin/check-mirrors @@ -5,6 +5,8 @@ if [ $# -eq 0 ]; then + echo 'updating mirrors from git...' >&2 + if [ -d "${releng_directory}/.git" ]; then git -C "${releng_directory}" remote update else @@ -54,6 +56,8 @@ if [ $# -eq 0 ]; then parallel -j10 "$0" "{}" > \ "${tmp_file}" + echo 'loading mirror data into database...' >&2 + # shellcheck disable=SC2016 { printf 'LOAD DATA LOCAL INFILE "%s" INTO TABLE `mirror_statuses` (' \ @@ -83,6 +87,8 @@ if [ $# -eq 0 ]; then } | \ mysql_run_query + echo 'done' >&2 + elif [ $# -eq 1 ]; then # check a single mirror url="$1" |