diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2021-11-16 11:14:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2021-11-16 11:14:09 +0000 |
commit | 6864a1896aabf9672e9055314733b427fdafa099 (patch) | |
tree | ba909fd160926aad0e075c30573c0dc5045fd9c8 /setup-apkrepos.in | |
parent | ec98636db75239329df0b65e56ca7124a71ecaa9 (diff) | |
download | alpine-conf-6864a1896aabf9672e9055314733b427fdafa099.zip |
setup-apkrepos: simplify enable community
Diffstat (limited to 'setup-apkrepos.in')
-rw-r--r-- | setup-apkrepos.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in index 07d8e06..a692ec4 100644 --- a/setup-apkrepos.in +++ b/setup-apkrepos.in @@ -109,10 +109,9 @@ get_alpine_release() { add_mirror() { local mirror="$1" - community_char="$([ "$enable_community" = true ] || echo -n "#")" mkdir -p "${APKREPOS_PATH%/*}" echo "${mirror%/}/${release}/main" >> $APKREPOS_PATH - echo "${community_char}${mirror%/}/${release}/community" >> $APKREPOS_PATH + echo "${community_prefix}${mirror%/}/${release}/community" >> $APKREPOS_PATH case "$release" in v[0-9]*) echo "#${mirror%/}/edge/main" >> $APKREPOS_PATH; @@ -154,13 +153,13 @@ usage() { } -enable_community=false +community_prefix="# " add_fastest=false add_first=false add_random=false while getopts "1fhr" opt; do case $opt in - c) enable_community=true;; + c) community_prefix="";; f) add_fastest=true;; 1) add_first=true;; h) usage;; |