diff --git a/spcd.sh b/spcd.sh index c6870ad..d2fe8f7 100644 --- a/spcd.sh +++ b/spcd.sh @@ -797,7 +797,7 @@ spcd_install_packages() { spcd_install_package "rsync" # shell check spcd_substep "Install ShellCheck" - case "${SPCD_PM}" in + case "${SPCD_PF}" in "${SPCD_PF_RPM}") spcd_install_package "ShellCheck" ;; @@ -808,7 +808,10 @@ spcd_install_packages() { case "${SPCD_OS_ID}" in "${SPCD_OS_ALMA}" | "${SPCD_OS_ROCKY}") ;; "${SPCD_OS_DEBIAN}") - [ "${SPCD_OS_VERSION}" != "bullseye" ] && spcd_install_package "shfmt" + case "${SPCD_OS_VERSION}" in + "bullseye") ;; + *) spcd_install_package "shfmt" ;; + esac ;; *) spcd_install_package "shfmt" ;; esac