From 7e7fc52d5405664b38b174a9f23cf55b16f36c95 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 3 Jun 2024 03:36:56 +0200 Subject: [PATCH] inject/test --- cd.sh | 8 +++++++- cd/__init__.py | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/cd.sh b/cd.sh index 659109d..0d5912a 100644 --- a/cd.sh +++ b/cd.sh @@ -564,6 +564,12 @@ ${CD_PYTHON_PACKAGES} cd_execute_python_module () { local self cd_step "Execute Python module" + # + cd_echo \ + "CD_OS_ID" "CD_OS_VERSION" \ + "CD_SPLIT" \ + > "${CD_PYTHON_PACKAGES}/env.py" + # self="$(realpath "${0}")" echo -n "\ ${self} @@ -586,7 +592,7 @@ cd_echo () { local name if [ "${1}" ] ; then for name in "${@}" ; do - eval "echo ${name}=\${${name}}" + eval "echo ${name} = '\${${name}}'" done fi } diff --git a/cd/__init__.py b/cd/__init__.py index da21c09..7c1660a 100644 --- a/cd/__init__.py +++ b/cd/__init__.py @@ -2,6 +2,10 @@ import os from cd.project import Project from cd.projects import Projects +import env +print(CD_OS_ID) +print(CD_SPLIT) +print(CD_OS_VERSION) from rwx import fs from rwx import ps