From de4c334582f08a7b5f6fab0a868ca0861f7a5002 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 26 Aug 2024 00:30:20 +0200 Subject: [PATCH] environment --- spcd/bootstrap.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index bbb67d3..de5261c 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -421,12 +421,12 @@ SPCD_PM_ZYPPER="zypper" SPCD_PYTHON_VENV="/opt/venv" SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin" -# ╭───────┬─────╮ -# │ steps │ env │ -# ╰───────┴─────╯ +# ╭───────┬─────────────╮ +# │ steps │ environment │ +# ╰───────┴─────────────╯ -spcd_set_environment_variables() { - spcd_step "Set environment variables" +spcd_environment_set_variables() { + spcd_step "Set variables" # check script first [ -n "${SPCD}" ] || spcd_error_ci "SPCD" # continuous integration / github → gitea → forgejo @@ -906,8 +906,8 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages" spcd_os_printenv "SPCD_CA" "SPCD_DL" } -spcd_list_working_directory() { - spcd_step "List working directory" +spcd_environment_list_workspace() { + spcd_step "List workspace" spcd_lwd__path="$(realpath .)" spcd_os_ls "${spcd_lwd__path}" } @@ -1250,9 +1250,10 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}" # ╰──────╯ spcd_main() { - # env - spcd_set_environment_variables - spcd_list_working_directory + spcd_step_in "Environment" + spcd_environment_set_variables + spcd_environment_list_workspace + spcd_step_out # pkg spcd_set_packages_repositories spcd_set_packages_configuration