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

index e0542f13036f342ddaa08a119f3d7b6f4363529a..20d6016d2f4674dd9fc39e258b53643de2d7465e 100644 (file)
@@ -35,6 +35,7 @@ print_nl_if_started_printing() {
     if [ ! -z "${_STARTED_PRINTING}" ]; then
         printf '\n'
     fi
+    printf '\r'
 }
 _LAST_PREFIX=''
 _STARTED_PRINTING=
@@ -44,7 +45,6 @@ eval "DEBIAN_FRONTEND=noninteractive apt-get -y $1; echo ${_FINISH_LINE}" 2>&1 |
         continue
     elif [ "${_LINE}" = "${_FINISH_LINE}" ]; then
         print_nl_if_started_printing
-        printf '\r'
         break
     fi
     _COMPRESSED_ITEM=''
@@ -68,12 +68,11 @@ eval "DEBIAN_FRONTEND=noninteractive apt-get -y $1; echo ${_FINISH_LINE}" 2>&1 |
         continue
     elif [ -z "${_COMPRESSED_ITEM}" ]; then
         print_nl_if_started_printing
-        printf '\r%s' "${_LINE}"
+        printf '%s' "${_LINE}"
         _LAST_PREFIX=''
     else
         if [ "${_PREFIX}" != "${_LAST_PREFIX}" ]; then
             print_nl_if_started_printing
-            printf '\r'
             prefixed_msg_no_nl "${_PREFIX}"
             _LAST_PREFIX="${_PREFIX}"
         fi