summaryrefslogtreecommitdiff
path: root/setup-apkrepos.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-apkrepos.in')
-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