mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix(check-config.sh): Check for existence of /etc/os-release before sourcing
Signed-off-by: Ryan Shea <sheabot03@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user