From 592655c850755b188e83c70ec8c393b6b25c4a62 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 6 May 2025 06:19:08 +0200 Subject: [PATCH] Fix. --- bookworm/scripts/lib/apt_get_digested | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bookworm/scripts/lib/apt_get_digested b/bookworm/scripts/lib/apt_get_digested index 36e7a38..5061ec9 100644 --- a/bookworm/scripts/lib/apt_get_digested +++ b/bookworm/scripts/lib/apt_get_digested @@ -39,13 +39,14 @@ print_nl_if_started_printing() { } _LAST_PREFIX='' _STARTED_PRINTING= -eval "set +e; DEBIAN_FRONTEND=noninteractive apt-get -y $1; _RESULT=\$?; set -e; echo ${_FINISH_LINE}" 2>&1 | while read _LINE; do +eval "set +e; DEBIAN_FRONTEND=noninteractive apt-get -y $1; _RESULT=\$?; set -e; echo ${_FINISH_LINE} \${_RESULT}" 2>&1 | while read _LINE; do _LINE=$(printf '%s' "${_LINE}" | tr -d '\r') if [ -z "${_LINE}" ]; then continue - elif [ "${_LINE}" = "${_FINISH_LINE}" ]; then + elif [ "$(echo ${_LINE} | cut -d' ' -f1)" = "${_FINISH_LINE}" ]; then print_nl_if_started_printing - if [ "${_RESULT}" != "0" ]; then + _STATUS=$(echo ${_LINE} | cut -d' ' -f2) + if [ "${_STATUS}" != "0" ]; then false fi break -- 2.30.2