From becaaa35b863639540662b25e63c5ef9340b4bc6 Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Tue, 6 May 2025 05:43:54 +0200 Subject: [PATCH] Fix. --- bookworm/scripts/lib/apt_get_digested | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookworm/scripts/lib/apt_get_digested b/bookworm/scripts/lib/apt_get_digested index 20d6016..06187e0 100644 --- a/bookworm/scripts/lib/apt_get_digested +++ b/bookworm/scripts/lib/apt_get_digested @@ -39,12 +39,15 @@ print_nl_if_started_printing() { } _LAST_PREFIX='' _STARTED_PRINTING= -eval "DEBIAN_FRONTEND=noninteractive apt-get -y $1; 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}" 2>&1 | while read _LINE; do _LINE=$(printf '%s' "${_LINE}" | tr -d '\r') if [ -z "${_LINE}" ]; then continue elif [ "${_LINE}" = "${_FINISH_LINE}" ]; then print_nl_if_started_printing + if [ "${_RESULT}" != "0" ]; then + false + fi break fi _COMPRESSED_ITEM='' -- 2.30.2