armbian-oleg: make `chroot_sdcard_apt_get_install_dry_run()` logging more useful by filtering the noise out

This commit is contained in:
Ricardo Pardini 2023-01-12 15:50:37 +01:00
parent c7c7d2e0d6
commit 68d8f10666
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ function chroot_sdcard_apt_get_install_download_only() {
}
function chroot_sdcard_apt_get_install_dry_run() {
chroot_sdcard_apt_get --no-install-recommends --dry-run install "$@"
local logging_filter=""
if [[ "${SHOW_DEBUG}" != "yes" ]]; then
logging_filter="2>&1 | { grep --line-buffered -v -e '^Conf ' -e '^Inst ' || true; }"
fi
chroot_sdcard_apt_get --no-install-recommends --dry-run install "$@" "${logging_filter}"
}
function chroot_sdcard_apt_get_remove() {