From 5f2d4634080a0fa3edef417b5886deccf6e0bf4e Mon Sep 17 00:00:00 2001 From: carlosmaroot <66852001+carlosmaroot@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:30:54 +0100 Subject: [PATCH] feat: enhance backup notes with guest name and improve whitespace handling and content line matching in container parsing. (#11752) --- tools/pve/update-apps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/pve/update-apps.sh b/tools/pve/update-apps.sh index 051d4f2a3..f1d2ce5f3 100644 --- a/tools/pve/update-apps.sh +++ b/tools/pve/update-apps.sh @@ -131,7 +131,7 @@ function detect_service() { function backup_container() { msg_info "Creating backup for container $1" - vzdump $1 --compress zstd --storage $STORAGE_CHOICE -notes-template "community-scripts backup updater" >/dev/null 2>&1 + vzdump $1 --compress zstd --storage $STORAGE_CHOICE -notes-template "{{guestname}} - community-scripts backup updater" >/dev/null 2>&1 status=$? if [ $status -eq 0 ]; then @@ -151,11 +151,11 @@ function get_backup_storages() { split($0, a, ":") type = a[1] name = a[2] - sub(/^ +/, "", name) + gsub(/^[ \t]+|[ \t]+$/, "", name) has_content = 0 has_backup = 0 } -/^ +content/ { +/^[ \t]*content/ { has_content = 1 if ($0 ~ /backup/) has_backup = 1 }