summaryrefslogtreecommitdiffstats
path: root/docker/scripts/lib_common.sh
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2023-09-20 14:20:18 -0400
committerDave Wallace <dwallacelf@gmail.com>2023-09-20 14:20:18 -0400
commit93580b1071398dbff9b64d73ba1554095335afcc (patch)
tree15f4cb822737079f91a8a5639f0bb8b5bce17d30 /docker/scripts/lib_common.sh
parenteef30f447cd0d91548833f661872439f80b674ce (diff)
Add stable/2310 branch to docker executor image scripts
- also clean up stale TODO's Change-Id: I7106bcf8566560c3f85767afac1405d4a7c8d25a Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
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)"