From: Christian Heller Date: Fri, 10 Oct 2025 13:03:20 +0000 (+0200) Subject: Fix. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Bprefix%7D%7D/blog?a=commitdiff_plain;ds=sidebyside;p=config Fix. --- diff --git a/trixie/scripts/lib/ensure_packages_of_tags.sh b/trixie/scripts/lib/ensure_packages_of_tags.sh index d6b9283..ceda292 100644 --- a/trixie/scripts/lib/ensure_packages_of_tags.sh +++ b/trixie/scripts/lib/ensure_packages_of_tags.sh @@ -5,20 +5,23 @@ ensure_packages_of_tags() { prefixed_msg_init 'ensure_packages_of_tags' + # shellcheck disable=SC2089 local APT_ARG="-q -q -o 'Dpkg::Options::=--force-confnew' install" local TAG - for TAG in "$@"; do + # shellcheck disable=SC2068 + for TAG in $@; do prefixed_msg_no_nl "For tag '${TAG}', " local TEST TEST=$(echo "${TAG}" | cut -d':' -f1) - # TODO get rid of this one + # TODO get rid of this one if [ "${TEST}" = 'keep_if_installed' ]; then local PACKAGE PACKAGE=$(echo "${TAG}" | cut -d':' -f2) printf 'checking if installed … ' if dpkg-query -Wf '${Package}\n' | grep '^'"${PACKAGE}"'$' > /dev/null; then echo 'yup, keeping!' - apt_digested "${APT_ARG}" "${PACKAGE}" + # shellcheck disable=SC2090,SC2086 + apt_digested ${APT_ARG} ${PACKAGE} else echo 'nope, nothing to keep.' fi @@ -35,7 +38,8 @@ ensure_packages_of_tags() { echo 'nothing to install.' else echo "ensuring installation of: ${PACKAGES}" - apt_digested "${APT_ARG}" "${PACKAGES}" + # shellcheck disable=SC2090,SC2086 + apt_digested ${APT_ARG} ${PACKAGES} fi done prefixed_msg_exit