Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Applications
pacman-mirrors
Commits
a42a9250
Commit
a42a9250
authored
Apr 18, 2013
by
Roland Singer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix
parent
b40e08db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bin/pacman-mirrors
bin/pacman-mirrors
+1
-1
No files found.
bin/pacman-mirrors
View file @
a42a9250
...
...
@@ -91,7 +91,7 @@ rankmirrors() {
territory
=
"
$(
echo
"
$line
"
|
sed
-e
's/\[//g'
-e
's/\]//g'
-e
's/ /_/g'
)
"
elif
[[
"
$line
"
==
Server
*
=
*
]]
;
then
# If only country is set, then only use the required country
if
[
"
$OnlyCountry
"
!=
""
]
&&
[
"
$OnlyCountry
"
!=
"
$territory
"
]
;
then continue
;
fi
if
[
"
$OnlyCountry
"
!=
""
]
&&
[
"
$(
echo
"
$OnlyCountry
"
|
tr
'[A-Z]'
'[a-z]'
)
"
!=
"
$(
echo
"
$territory
"
|
tr
'[A-Z]'
'[a-z]'
)
"
]
;
then continue
;
fi
local
server
=
"
$(
echo
"
$line
"
|
sed
-e
's/Server[ ]*=//g'
-e
's/^ *//g'
-e
's/ *$//g'
-e
"s/
\$
branch/
$Branch
/g"
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment