summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Mustafa <furkan@rainlab.co.jp>2021-11-26 19:47:42 +0900
committerNatanael Copa <ncopa@alpinelinux.org>2021-11-26 13:14:23 +0100
commit4103dce44084c5dc3bb067522da6caf8cbdf5662 (patch)
tree47dec78baf591bfe5273c0789f9b3c07fdbb1071
parent051f5df5eda256a02fad98ccf3ac7494ef34387a (diff)
downloadalpine-conf-4103dce44084c5dc3bb067522da6caf8cbdf5662.zip
setup-apkrepos: fix accepting options
`-c` option was (mistakenly?) omitted in `getopts` call. Causing following error; # setup-apkrepos -1 -c Illegal option -c Added mirror dl-cdn.alpinelinux.org Updating repository indexes... done. Tested this change locally and it works as expected. Signed-off-by: Furkan Mustafa <furkan@rainlab.co.jp>
-rw-r--r--setup-apkrepos.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index a692ec4..bb77420 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -157,7 +157,7 @@ community_prefix="# "
add_fastest=false
add_first=false
add_random=false
-while getopts "1fhr" opt; do
+while getopts "c1fhr" opt; do
case $opt in
c) community_prefix="";;
f) add_fastest=true;;