summaryrefslogtreecommitdiff
path: root/bin/runmirrors
diff options
context:
space:
mode:
Diffstat (limited to 'bin/runmirrors')
-rwxr-xr-xbin/runmirrors2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/runmirrors b/bin/runmirrors
index ed6ead4..b2ac7e0 100755
--- a/bin/runmirrors
+++ b/bin/runmirrors
@@ -65,7 +65,7 @@ set +e
# Now read our mirrorfile and push the mirrors defined in there.
# We use grep to easily sort out all lines having a # in front of them.
-grep -v ^# ${HOME}/etc/runmirrors.mirror |
+egrep -v '^[[:space:]]*(#|$)' ${HOME}/etc/runmirrors.mirror |
while read MLNAME MHOSTNAME MUSER MPROTO MKEYFILE; do
# Process the two options that can be left blank in the config
if [ -z ${MPROTO} ]; then