Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
627a29ba
Commit
627a29ba
authored
Mar 02, 2011
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-apkrepos: make show mirror list a separate function
parent
24691ac9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
setup-apkrepos.in
setup-apkrepos.in
+10
-7
No files found.
setup-apkrepos.in
View file @
627a29ba
...
...
@@ -92,6 +92,15 @@ get_fastest_mirror() {
echo
"using
$(
get_hostname_from_url
$mirror
)
"
}
show_mirror_list
()
{
local
mirror
i
=
1
echo
""
for
mirror
in
$MIRRORS
;
do
echo
"
$i
)
$(
get_hostname_from_url
$mirror
)
"
i
=
$((
$i
+
1
))
done
}
prompt_mirror_list
()
{
local
i
local
mirror_hostname
...
...
@@ -99,13 +108,7 @@ prompt_mirror_list() {
local
mirror_count
=
$(
count
$MIRRORS
)
while
true
;
do
echo
""
i
=
1
for
mirror
in
$MIRRORS
;
do
echo
"
$i
)
$(
get_hostname_from_url
$mirror
)
"
i
=
$((
$i
+
1
))
done
show_mirror_list
echo
-en
"
\n
Please select a mirror from the above list: "
read
mirror_index
case
$mirror_index
in
...
...
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