diff options
author | Ryan Shea <sheabot03@gmail.com> | 2022-02-11 11:40:32 -0700 |
---|---|---|
committer | Ryan Shea <sheabot03@gmail.com> | 2022-02-11 11:40:32 -0700 |
commit | 2deec80dba28461a3cb3a51b20dd98b7363dd45b (patch) | |
tree | e7b6a83c5aa0195af78e376ee2eb857fd60774bb /contrib | |
parent | 3b02526c1e5087166912e444468491f1f223bdee (diff) | |
download | docker-2deec80dba28461a3cb3a51b20dd98b7363dd45b.tar.gz |
fix(check-config.sh): Check for existence of /etc/os-release before sourcing
Signed-off-by: Ryan Shea <sheabot03@gmail.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/check-config.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/check-config.sh b/contrib/check-config.sh index 617eb93893..88f045b556 100755 --- a/contrib/check-config.sh +++ b/contrib/check-config.sh @@ -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) |