summaryrefslogtreecommitdiffstats
path: root/docker/scripts/lib_common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker/scripts/lib_common.sh')
-rw-r--r--docker/scripts/lib_common.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/docker/scripts/lib_common.sh b/docker/scripts/lib_common.sh
index 09fbc0914..150441bb7 100644
--- a/docker/scripts/lib_common.sh
+++ b/docker/scripts/lib_common.sh
@@ -124,9 +124,6 @@ remove_pyc_files_and_pycache_dirs() {
}
# OS type variables
-# TODO: Investigate if sourcing /etc/os-release and using env vars from it
-# works across all OS variants. If so, clean up copy-pasta...
-# Alternatively use facter as does LF Releng scripts.
export OS_ID="$(grep '^ID=' /etc/os-release | cut -d= -f2 | sed -e 's/\"//g')"
export OS_VERSION_ID="$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2 | sed -e 's/\"//g')"
export OS_CODENAME="$(grep 'VERSION_CODENAME=' /etc/os-release | cut -d= -f2)"