steps/fixes
All checks were successful
/ job (push) Successful in 10m50s

This commit is contained in:
Marc Beninca 2024-08-25 17:41:04 +02:00
parent 8a4a5f081f
commit 252cb1b1de
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -728,28 +728,29 @@ spcd_install_git() {
# ╰───────┴────────╯
spcd_install_python() {
spcd_step "Install Python"
spcd_step_in "Install Python"
spcd_install_package "${SPCD_PYTHON_PACKAGE}"
spcd_substep "Link alias to command"
spcd_step "Link alias to command"
spcd_ln_python "${SPCD_PYTHON_COMMAND}"
# venv
spcd_substep "Install virtual environment"
spcd_step "Install virtual environment"
case "${SPCD_OS_ID}" in
"${SPCD_OS_DEBIAN}" | "${SPCD_OS_UBUNTU}")
spcd_install_package "python3-venv"
;;
*) ;;
esac
spcd_substep "Configure PIP"
spcd_step "Configure PIP"
spcd_write "/etc/pip.conf" "\
[global]
index-url = ${SPCD_URL_PYTHON}
"
spcd_substep "Create virtual environment"
spcd_step "Create virtual environment"
"${SPCD_PYTHON_ALIAS}" -m "venv" "${SPCD_PYTHON_VENV}"
spcd_substep "Activate virtual environment"
spcd_step "Activate virtual environment"
export PATH="${SPCD_PYTHON_VENV_BINARIES}:${PATH}"
export VIRTUAL_ENV="${SPCD_PYTHON_VENV}"
spcd_step_out
}
spcd_install_python_modules() {
@ -776,9 +777,9 @@ spcd_install_python_modules() {
}
spcd_install_packages() {
spcd_step "Install packages"
spcd_step_in "Install packages"
# epel
spcd_substep "Install EPEL"
spcd_step "Install EPEL"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release"
@ -792,13 +793,13 @@ spcd_install_packages() {
*) ;;
esac
# bats
spcd_substep "Install BATS"
spcd_step "Install BATS"
spcd_install_package "bats"
# graphviz
spcd_substep "Install GraphViz"
spcd_step "Install GraphViz"
spcd_install_package "graphviz"
# openssh
spcd_substep "Install OpenSSH"
spcd_step "Install OpenSSH"
case "${SPCD_PM}" in
"${SPCD_PM_APK}" | "${SPCD_PM_APT}")
spcd_install_package "openssh-client"
@ -810,13 +811,13 @@ spcd_install_packages() {
*) ;;
esac
# plantuml
spcd_substep "Install PlantUML"
spcd_step "Install PlantUML"
spcd_install_package "plantuml"
# rsync
spcd_substep "Install Rsync"
spcd_step "Install Rsync"
spcd_install_package "rsync"
# shell check
spcd_substep "Install ShellCheck"
spcd_step "Install ShellCheck"
case "${SPCD_PF}" in
"${SPCD_PF_RPM}")
spcd_install_package "ShellCheck"
@ -824,7 +825,7 @@ spcd_install_packages() {
*) spcd_install_package "shellcheck" ;;
esac
# shfmt
spcd_substep "Install ShellFormat"
spcd_step "Install ShellFormat"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;;
"${SPCD_OS_DEBIAN}")
@ -835,6 +836,7 @@ spcd_install_packages() {
;;
*) spcd_install_package "shfmt" ;;
esac
spcd_step_out
}
spcd_write_python_module() {
@ -1216,7 +1218,7 @@ spcd_banner_unset() {
# │ internal │ step │
# ╰──────────┴──────╯
SPCD_STEP=1
SPCD_STEP_LEVEL=1
spcd_step_wipe() {
unset \