home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 6 May 2025 02:49:58 +0000 (04:49 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 6 May 2025 02:49:58 +0000 (04:49 +0200)
bookworm/scripts/lib/apt_get_digested
bookworm/scripts/minimize_installation.sh

index ecca247a94d3912ecfe6ff405994575ab0559f26..0157c683907f3e3cd95534665b59042be624e4e3 100644 (file)
@@ -6,7 +6,7 @@ prefixed_msg_init 'apt_get_digested'
 
 abort_if_command_unknown calc
 
-_FINISH_LINE='apt_get_digested FINISH_LINE'
+_FINISH_LINE='apt_get_digested_FINISH_LINE'
 _SEDS=\
 '|\(Reading database \.\.\. .*|IGNORE
 |Generation complete.|IGNORE
@@ -33,7 +33,7 @@ update-alternatives: providing in auto mode:|update-alternatives: using ([[:prin
 
 _LAST_PREFIX=''
 _STARTED_PRINTING=
-DEBIAN_FRONTEND=noninteractive apt-get -y $1 2>&1; echo "${_FINISH_LINE}" | while read _LINE; do
+DEBIAN_FRONTEND=noninteractive eval "apt-get -y $1; echo ${_FINISH_LINE}" 2>&1 | while read _LINE; do
     _LINE=$(printf '%s' "${_LINE}" | tr -d '\r')
     if [ -z "${_LINE}" ]; then
         continue
index 78a61bde6e7faf6b46422ec3ebf85479106bd081..e7a8cc92e029c9d0007f614fe8640a440a2568cc 100755 (executable)
@@ -26,7 +26,7 @@ dpkg-query -Wf '${Package} ${Priority}\n' | grep " ${_TOK_REQ}" | cut -d' ' -f1
 sort "${_PATH_LIST_UNSORTED}" > "${_PATH_LIST_WHITE}"
 echo $(cat "${_PATH_LIST_WHITE}")
 
-prefixed_msg_no_nl 'collect installed packages outside this selection …'
+prefixed_msg 'collect installed packages outside this selection …'
 dpkg-query -Wf '${Package}\n' > "${_PATH_LIST_UNSORTED}"
 sort "${_PATH_LIST_UNSORTED}" > "${_PATH_LIST_ALL_PACKAGES}"
 comm -3 "${_PATH_LIST_ALL_PACKAGES}" "${_PATH_LIST_WHITE}" > "${_PATH_LIST_BLACK}"