index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andres P <aepd87@gmail.com> | 2010-06-22 22:12:50 -0430 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2010-06-23 13:32:21 +1000 |
commit | 226c137245192444085d03a7f841b35afe99791c (patch) | |
tree | 38c3cebbf1a1f2baacbfd8a80b44695d6f455113 /scripts | |
parent | 2222e9f8dfe6e149262f629571b3432718351d3f (diff) |
-rw-r--r-- | scripts/rankmirrors.sh.in | 4 |
diff --git a/scripts/rankmirrors.sh.in b/scripts/rankmirrors.sh.in index 201cc4be..fcb42fa4 100644 --- a/scripts/rankmirrors.sh.in +++ b/scripts/rankmirrors.sh.in @@ -184,9 +184,9 @@ fi timesarray=() for line in "${linearray[@]}"; do - if [[ $line =~ ^# ]]; then + if [[ $line =~ ^[[:space:]]*# ]]; then [[ $TIMESONLY ]] || echo $line - elif [[ $line =~ ^Server ]]; then + elif [[ $line =~ ^[[:space:]]*Server ]]; then # Getting values and times and such server="${line#*= }" |