diff options
Diffstat (limited to 'security/portaudit/files/portaudit.functions')
-rw-r--r-- | security/portaudit/files/portaudit.functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/portaudit/files/portaudit.functions b/security/portaudit/files/portaudit.functions index 1b6a0fe9992..36f10289dd1 100644 --- a/security/portaudit/files/portaudit.functions +++ b/security/portaudit/files/portaudit.functions @@ -153,8 +153,8 @@ audit_installed() fetch_locations() { # site sort order is not overly smart - echo "${MASTER_SITE_LOCAL}" | awk " - BEGIN { RS=\"[ \\t\\n]\"; IGNORECASE=1; srand() } + echo "${MASTER_SITE_LOCAL}" | sed -e 'y/ /\n\n/' | awk " + BEGIN { IGNORECASE=1; srand() } /^$/ { next } { if (\$0 ~ /${MASTER_SORT_REGEX}/ ) rank=0; else rank=rand() |