From 2deec80dba28461a3cb3a51b20dd98b7363dd45b Mon Sep 17 00:00:00 2001 From: Ryan Shea Date: Fri, 11 Feb 2022 11:40:32 -0700 Subject: [PATCH] fix(check-config.sh): Check for existence of /etc/os-release before sourcing Signed-off-by: Ryan Shea --- contrib/check-config.sh | 3 +++ 1 file changed, 3 insertions(+) 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)