From 01cfa3db652ac68ed775f368773e7cb95254ed0c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 21 Aug 2024 11:52:33 +0200 Subject: [PATCH] use substeps for packages --- spcd.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/spcd.sh b/spcd.sh index a5d95c0..abb3bc2 100644 --- a/spcd.sh +++ b/spcd.sh @@ -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"