diff options
author | William Wilhelm <willat8@gmail.com> | 2023-01-01 10:13:45 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2023-01-24 13:35:09 +0000 |
commit | 6bd38f5187aded22a81e23c203ed2f8c725a38d4 (patch) | |
tree | 92fb70027f0b51520a2893b060c4b85cb3a7bbe0 | |
parent | aba2a2b57aec712b5786b4b8b062588466e0523a (diff) | |
download | alpine-conf-6bd38f5187aded22a81e23c203ed2f8c725a38d4.zip |
setup-apkrepos: suppress stderr
-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";; |