This commit is contained in:
Marc Beninca 2024-07-20 16:21:34 +02:00
parent 6544d17f77
commit 1e1092235b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

19
spcd.sh
View file

@ -10,9 +10,10 @@
# main # main
spcd_main() { spcd_main() {
spcd_list_environment_variables spcd_list_environment_variables
spcd_set_environment_variables
#
spcd_list_working_directory spcd_list_working_directory
# #
spcd_set_environment_variables
spcd_set_packages_repositories spcd_set_packages_repositories
spcd_set_packages_configuration spcd_set_packages_configuration
# #
@ -38,7 +39,7 @@ spcd_main() {
spcd_switch_to_python "${@}" spcd_switch_to_python "${@}"
} }
# context # steps
spcd_list_environment_variables() { spcd_list_environment_variables() {
spcd_step "List environment variables" spcd_step "List environment variables"
@ -49,14 +50,6 @@ spcd_list_environment_variables() {
done done
} }
spcd_list_working_directory() {
spcd_step "List working directory"
spcd_lwd__path="$(realpath .)"
spcd_ls "${spcd_lwd__path}"
}
# steps
spcd_set_environment_variables() { spcd_set_environment_variables() {
spcd_step "Set environment variables" spcd_step "Set environment variables"
# continuous integration platform # continuous integration platform
@ -448,6 +441,12 @@ Acquire::https::Verify-Peer False;
esac esac
} }
spcd_list_working_directory() {
spcd_step "List working directory"
spcd_lwd__path="$(realpath .)"
spcd_ls "${spcd_lwd__path}"
}
spcd_set_packages_repositories() { spcd_set_packages_repositories() {
spcd_step "Set packages repositories" spcd_step "Set packages repositories"
case "${SPCD_OS_ID}" in case "${SPCD_OS_ID}" in