aboutsummaryrefslogtreecommitdiffstats
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:28:23 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-02 23:12:27 +0100
commit281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24 (patch)
tree9bf3e352b97c7d3742c94b31d7d2e6886dc001b1 /setup-apkrepos.in
parent07c02f672a5708e4dcd9ed9aa3935840916f4c6e (diff)
downloadalpine-conf-281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24.tar.bz2
alpine-conf-281cbbd6cd8ecfc3d5c1a365ae01f2e49ad25f24.tar.xz
indent heredocs and replace echos with heredoc where appropriate
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
}