summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilhelm <willat8@gmail.com>2023-01-01 05:01:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2023-01-24 13:35:09 +0000
commitaba2a2b57aec712b5786b4b8b062588466e0523a (patch)
treeb607540f019d10395f74257ac147e6bd181af64e
parente6711d286b02fe7ae0d6677b139fe5af0978b2fb (diff)
downloadalpine-conf-aba2a2b57aec712b5786b4b8b062588466e0523a.zip
setup-apkrepos: clarify get_alpine_release behaviour
-rw-r--r--setup-apkrepos.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in
index a7bfe1b..06e56e9 100644
--- a/setup-apkrepos.in
+++ b/setup-apkrepos.in
@@ -105,6 +105,7 @@ add_from_list() {
}
get_alpine_release() {
+ # use the main version already configured, or get the version from /etc/alpine-release
local version="$(grep -Eom1 '[^/]+/main/?$' "${ROOT}"etc/apk/repositories | grep -Eo '^[^/]+' \
|| cat "${ROOT}"etc/alpine-release 2>/dev/null)"
case "$version" in