From 60205169f42d7df90bf28b218aaedea2f861e8dc Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 17 Sep 2026 23:02:36 +0200 Subject: [PATCH] fix(manifest): clarify dynamic shell references --- scripts/lib/manifest.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/manifest.sh b/scripts/lib/manifest.sh index 06e1323..c62e525 100755 --- a/scripts/lib/manifest.sh +++ b/scripts/lib/manifest.sh @@ -32,6 +32,7 @@ read_managed_manifest() { fi [ -n "$rel" ] || continue hash=$(printf '%s' "$hash" | tr '[:upper:]' '[:lower:]') # tolerate uppercase hashes from older manifests + # shellcheck disable=SC2034 out_ref[$rel]=$hash done < "$path" } @@ -96,7 +97,7 @@ sync_managed_destination() { while IFS= read -r setting; do setting_name=${setting%%=*} setting_name=${setting_name//[[:space:]]/} - content=$(printf '%s\n' "$content" | sed "/^[[:space:]]*$setting_name[[:space:]]*=/d") + content=$(printf '%s\n' "$content" | sed "/^[[:space:]]*${setting_name}[[:space:]]*=/d") done <<< "$local_settings" if printf '%s\n' "$content" | grep -qE '^[[:blank:]]*\['; then content=$(printf '%s\n' "$content" | awk -v settings="$local_settings" '