V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m9s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-09-06 17:52:06 +02:00
parent ac32ffad52
commit 6006ce90dc

View File

@@ -66,14 +66,15 @@ check_pkgs() {
do_log "debug" "file_only" "0030() [ary_missing_pkgs]='${ary_missing_pkgs[*]}'." do_log "debug" "file_only" "0030() [ary_missing_pkgs]='${ary_missing_pkgs[*]}'."
### Installing unique list of packages. ### Installing unique list of packages.
apt-get update > /dev/null 2>&1 # shellcheck disable=SC2312
apt-get update 2>&1 | tee -a "${DIR_LOG}/0030_check_pkgs.log"
if ((${#ary_missing_pkgs[@]})); then if ((${#ary_missing_pkgs[@]})); then
# shellcheck disable=SC2312 # shellcheck disable=SC2312
mapfile -t ary_unique_pkgs < <(printf '%s\n' "${ary_missing_pkgs[@]}" | sort -u) mapfile -t ary_unique_pkgs < <(printf '%s\n' "${ary_missing_pkgs[@]}" | sort -u)
do_log "debug" "file_only" "0030() [ary_unique_pkgs]='${ary_unique_pkgs[*]}'." do_log "debug" "file_only" "0030() [ary_unique_pkgs]='${ary_unique_pkgs[*]}'."
# shellcheck disable=SC2312 # shellcheck disable=SC2312
apt-get install -y --no-install-recommends --no-install-suggests "${ary_unique_pkgs[*]}" 2>&1 | tee -a "${DIR_LOG}/0030_check_pkgs.log" apt-get install -y --no-install-recommends --no-install-suggests "${ary_unique_pkgs[@]}" 2>&1 | tee -a "${DIR_LOG}/0030_check_pkgs.log"
fi fi