From bcc64b6af3d5c0f4ac2e968373866cbcff74f1ce Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 21 Aug 2024 14:47:29 +0200 Subject: [PATCH] fixes --- spcd.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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