home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 6 May 2025 03:03:10 +0000 (05:03 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 6 May 2025 03:03:10 +0000 (05:03 +0200)
bookworm/scripts/lib/apt_get_digested

index 34ac00f5dbb8fc056250d76b025cff76a6e0080d..49a30c6c93fd39d041446f9180a5618d3f877478 100644 (file)
@@ -33,10 +33,10 @@ _FINISH_LINE='apt_get_digested_FINISH_LINE'
 _LAST_PREFIX=''
 _STARTED_PRINTING=
 print_cr_and_if_started_printing_nl() {
-    printf '\r'
     if [ ! -z "${_STARTED_PRINTING}" ]; then
         printf '\n'
     fi
+    printf '\r'
 }
 eval "DEBIAN_FRONTEND=noninteractive apt-get -y $1; echo ${_FINISH_LINE}" 2>&1 | while read _LINE; do
     _LINE=$(printf '%s' "${_LINE}" | tr -d '\r')