cd_write
All checks were successful
/ job (push) Successful in 5m32s

This commit is contained in:
Marc Beninca 2024-06-03 04:33:10 +02:00
parent 74bfd6ba1c
commit fd7230ebe3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 6 additions and 9 deletions

12
cd.sh
View file

@ -565,12 +565,12 @@ cd_execute_python_module () {
local path
cd_step "Execute Python module"
#
path="${CD_PYTHON_PACKAGES}/env.py"
cd_echo \
"CD_OS_ID" "CD_OS_VERSION" \
"CD_SPLIT" \
> "${path}" || exit
cd_cat "${path}"
cd_write "${CD_PYTHON_PACKAGES}/env.py" "$(cd_echo \
CD_OS_ID CD_OS_VERSION \
CD_SPLIT \
)"
#
cd_split
#
path="$(realpath "${0}")"
echo -n "\

View file

@ -3,9 +3,6 @@ import os
from cd.project import Project
from cd.projects import Projects
import env
print(env.CD_OS_ID)
print(env.CD_SPLIT)
print(env.CD_OS_VERSION)
from rwx import fs
from rwx import ps