home · contact · privacy
Fix. master
authorChristian Heller <c.heller@plomlompom.de>
Mon, 5 May 2025 21:04:29 +0000 (23:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 5 May 2025 21:04:29 +0000 (23:04 +0200)
bookworm/scripts/lib/apt_get_digested
bookworm/scripts/lib/prefixed_msg

index 91940f1b6c46cecb1ba1262ecb93b1ed97d5c0e2..30ed81ec3b0bc72f913389451eab7ddf9e91bae2 100644 (file)
@@ -61,7 +61,7 @@ DEBIAN_FRONTEND=noninteractive apt-get -y $1 2>&1 | while read _LINE; do
     else
         if [ "${_PREFIX}" != "${_LAST_PREFIX}" ]; then
             printf '\n\r'
-            prefixed_msg_no_nl '%s' "${_PREFIX}"
+            prefixed_msg_no_nl "${_PREFIX}"
             _LAST_PREFIX="${_PREFIX}"
         fi
         printf ' %s' "${_COMPRESSED_ITEM}"
index b91740d3fdafd963374d1c2d94fe29188e3ee0fa..4ac74eddd96b1eda4d8e7791eb42c979bc7d7803 100644 (file)
@@ -9,11 +9,11 @@ prefixed_msg_exit() {
 
 prefixed_msg_no_nl() {
     _INDENTOR='##'
-    _INDENT="${_INDENTOR}"
+    _INDENT=''
     _SEPARATORS=$(echo "${prefixed_msg_OLD_PREFIX}" | sed 's/[^|]//g')
     while [ ! -z "${_SEPARATORS}" ]; do
         _INDENT="${_INDENT}${_INDENTOR}"
-        _SEPARATORS=$(echo "${_SEPARATORS}" | cut -d'|' -f2-)
+        _SEPARATORS=$(echo -n "${_SEPARATORS}" | cut -d'|' -f2-)
     done
     printf '%s%s%s' "${_INDENT}" "${prefixed_msg_PREFIX}" "$1"
 }