summaryrefslogtreecommitdiff
path: root/bin/runmirrors
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2008-10-22 00:30:10 +0200
committerJoerg Jaspert <joerg@debian.org>2008-10-22 00:30:10 +0200
commit729671a271222de9a881066d3a9eb0b05c9443a9 (patch)
tree0d32ccbbd3d391e2c12ab3c718e54a897d2c43ba /bin/runmirrors
parentdd2645383348751592449b82efb95bd4cd3cbb17 (diff)
if we want to use a default - it might be helpful to check for it
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin/runmirrors')
-rwxr-xr-xbin/runmirrors3
1 files changed, 3 insertions, 0 deletions
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