summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/sanity-check4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sanity-check b/bin/sanity-check
index 5160142..3813f22 100755
--- a/bin/sanity-check
+++ b/bin/sanity-check
@@ -158,9 +158,9 @@ while [ $# -gt 0 ]; do
' | \
sort -u
); do
- if ! curl -s "http://$(dig +short "${host}" | tail -n1)" >/dev/null 2>&1; then
+ if ! ping -c1 "${host}" >/dev/null 2>&1; then
if [ ${silence} -le 1 ]; then
- printf '\nThe master mirror %s is not reachable.\n' \
+ printf '\nThe master mirror %s cannot be pinged.\n' \
"${host}" | \
tee -a "${tmp_dir}/messages" >&2
fi