index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2011-09-03 22:23:21 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-06 08:44:34 -0500 |
commit | 7ed54a99401f7a16edcba27725e92fb7474be240 (patch) | |
tree | 07a5b62297c8c9da673b1377d4df18ecf52ab965 | |
parent | a4e0d3e9302aa16b966ea5d84926664748ba9ae2 (diff) |
-rw-r--r-- | scripts/rankmirrors.sh.in | 3 |
diff --git a/scripts/rankmirrors.sh.in b/scripts/rankmirrors.sh.in index a0ff6d5d..875a1439 100644 --- a/scripts/rankmirrors.sh.in +++ b/scripts/rankmirrors.sh.in @@ -92,7 +92,8 @@ getfetchurl() { # This exists to remove the need for a separate interrupt function finaloutput() { - IFS=$'\n' sortedarray=( $(LC_COLLATE=C printf "%s\n" "${timesarray[@]}" | sort) ) + IFS=$'\n' read -r -d '' -a sortedarray < \ + <(printf '%s\n' "${timesarray[@]}" | LC_COLLATE=C sort) # Final output for mirrorfile numiterator="0" |