1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #43230 from sheabot/bugfix/check-config-os-release

fix(check-config.sh): Check for existence of /etc/os-release before sourcing
This commit is contained in:
Tianon Gravi 2022-02-11 13:01:58 -08:00 committed by GitHub
commit 12ba4848b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -121,6 +121,9 @@ check_device() {
}
check_distro_userns() {
if [ ! -e /etc/os-release ]; then
return
fi
. /etc/os-release 2> /dev/null || /bin/true
case "$ID" in
centos | rhel)