From 729671a271222de9a881066d3a9eb0b05c9443a9 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 22 Oct 2008 00:30:10 +0200 Subject: if we want to use a default - it might be helpful to check for it Signed-off-by: Joerg Jaspert --- bin/runmirrors | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/runmirrors') diff --git a/bin/runmirrors b/bin/runmirrors index 57709b5..49b194b 100755 --- a/bin/runmirrors +++ b/bin/runmirrors @@ -94,6 +94,9 @@ egrep -v '^[[:space:]]*(#|$)' "${MIRRORS}" | while read MTYPE MLNAME MHOSTNAME MUSER MPROTO MKEYFILE; do if [ "x${MTYPE}x" = "xDELAYx" ]; then # We should wait a bit. + if [ -z ${MLNAME} ]; then + MLNAME=60 + fi log "Delay of ${MLNAME} requested, sleeping" >> "${LOG}" sleep ${MLNAME} continue -- cgit v1.2.3