diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index c8c7a1e..9b0017d 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -1365,20 +1365,21 @@ spcd_step__install_packages() { spcd_step__python_write_module() { spcd_step "Write module" - for spcd_wpm__variable in \ + local variable value text index root + for variable in \ OS_ID OS_VERSION \ PROJECT_ROOT PROJECT_PATH PROJECT_NAME \ PYTHON_VENV_BINARIES PYTHON_VENV_PACKAGES \ OPEN DOWN VERT SPLT __UP SHUT; do - spcd_wpm__value="$(spcd_os_printenv "SPCD_${spcd_wpm__variable}")" - spcd_wpm__text="${spcd_wpm__text}${spcd_wpm__value} + value="$(spcd_os_printenv "SPCD_${variable}")" + text="${text}${value} " done - spcd_wpm__index=$((__SPCD_STEP_1_INDEX + 1)) - for spcd_wpm__root in \ + index=$((__SPCD_STEP_1_INDEX + 1)) + for root in \ "${SPCD_PYTHON_PACKAGES}" "${SPCD_PYTHON_VENV_PACKAGES}"; do - spcd_os_write "${spcd_wpm__root}/env.py" "${spcd_wpm__text} -SPCD_STEP = ${spcd_wpm__index} + spcd_os_write "${root}/env.py" "${text} +SPCD_STEP = ${index} " done }