use substeps for packages

This commit is contained in:
Marc Beninca 2024-08-21 11:52:33 +02:00
parent 8ab46c1d59
commit 01cfa3db65
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

19
spcd.sh
View file

@ -739,8 +739,9 @@ ${spcd_ipm__target}"
}
spcd_install_packages() {
spcd_step "Install packages"
# epel
spcd_step "Install EPEL"
spcd_substep "Install EPEL"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}")
spcd_install_package "epel-release"
@ -754,19 +755,19 @@ spcd_install_packages() {
*) ;;
esac
# bats
spcd_step "Install BATS"
spcd_substep "Install BATS"
spcd_install_package "bats"
# graphviz
spcd_step "Install GraphViz"
spcd_substep "Install GraphViz"
spcd_install_package "graphviz"
# plantuml
spcd_step "Install PlantUML"
spcd_substep "Install PlantUML"
spcd_install_package "plantuml"
# rsync
spcd_step "Install Rsync"
spcd_substep "Install Rsync"
spcd_install_package "rsync"
# shell check
spcd_step "Install ShellCheck"
spcd_substep "Install ShellCheck"
case "${SPCD_PM}" in
"${SPCD_PM_DNF}" | "${SPCD_PM_ZYPPER}")
spcd_install_package "ShellCheck"
@ -774,7 +775,7 @@ spcd_install_packages() {
*) spcd_install_package "shellcheck" ;;
esac
# shfmt
spcd_step "Install ShellFormat"
spcd_substep "Install ShellFormat"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;;
"${SPCD_OS_DEBIAN}")
@ -782,8 +783,8 @@ spcd_install_packages() {
;;
*) spcd_install_package "shfmt" ;;
esac
# ssh
spcd_step "Install SSH"
# openssh
spcd_substep "Install OpenSSH"
case "${SPCD_PM}" in
"${SPCD_PM_APK}" | "${SPCD_PM_APT}")
spcd_install_package "openssh-client"