diff options
author | William Wilhelm <willat8@gmail.com> | 2023-01-01 05:01:01 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-24 13:35:09 +0000 |
commit | aba2a2b57aec712b5786b4b8b062588466e0523a (patch) | |
tree | b607540f019d10395f74257ac147e6bd181af64e | |
parent | e6711d286b02fe7ae0d6677b139fe5af0978b2fb (diff) | |
download | alpine-conf-aba2a2b57aec712b5786b4b8b062588466e0523a.zip |
setup-apkrepos: clarify get_alpine_release behaviour
-rw-r--r-- | setup-apkrepos.in | 1 |
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 |