From b8752770452ffea0bf1ce21a8f9bef186ba8fc12 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 3 Jun 2022 11:55:52 +0200 Subject: check-mirrors: be a little bit more verbose (timer was not running on buildmaster) --- bin/check-mirrors | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3-54-g00ecf