diff options
-rw-r--r-- | setup-apkrepos.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-apkrepos.in b/setup-apkrepos.in index 06e56e9..305a3dd 100644 --- a/setup-apkrepos.in +++ b/setup-apkrepos.in @@ -106,7 +106,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 '^[^/]+' \ + local version="$(grep -Eom1 '[^/]+/main/?$' "${ROOT}"etc/apk/repositories 2>/dev/null | grep -Eo '^[^/]+' \ || cat "${ROOT}"etc/alpine-release 2>/dev/null)" case "$version" in *_git*|*_alpha*) release="edge";; |