aboutsummaryrefslogtreecommitdiffstats
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r--setup-apkrepos.in26
1 files changed, 14 insertions, 12 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index 455dc20..f15a886 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -15,10 +15,12 @@ get_hostname_from_url() {
}
prompt_setup_method() {
- echo "r) Add random from the above list"
- echo "f) Detect and add fastest mirror from above list"
- echo "e) Edit "${ROOT}"etc/apk/repositores with text editor"
- echo ""
+ cat <<-__EOF__
+ r) Add random from the above list
+ f) Detect and add fastest mirror from above list
+ e) Edit "${ROOT}"etc/apk/repositores with text editor
+
+ __EOF__
echo -n "Enter mirror number (1-$mirror_count) or URL to add (or r/f/e/done) [$1]: "
}
@@ -143,16 +145,16 @@ edit_repositories() {
}
usage() {
- cat <<__EOF__
-usage: setup-apkrepos [-fhr] [REPO...]
+ cat <<-__EOF__
+ usage: setup-apkrepos [-fhr] [REPO...]
-Setup apk repositories
+ Setup apk repositories
-options:
- -f Detect and add fastest mirror
- -h Show this help
- -r Add a random mirror and do not prompt
-__EOF__
+ options:
+ -f Detect and add fastest mirror
+ -h Show this help
+ -r Add a random mirror and do not prompt
+ __EOF__
exit 1
}