envars
This commit is contained in:
parent
6544d17f77
commit
1e1092235b
1 changed files with 9 additions and 10 deletions
19
spcd.sh
19
spcd.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue