Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix checksum verification on macOS by replacing awk with grep

[email protected]7c69b753636c
diff --git a/scripts/install-docker-agent-v2.sh b/scripts/install-docker-agent-v2.sh
index 8293261d8d..a159cedf9c 100755
--- a/scripts/install-docker-agent-v2.sh
+++ b/scripts/install-docker-agent-v2.sh
@@ -804,7 +804,7 @@ fetch_checksum_header() {
fi
local checksum_line
- checksum_line=$(printf '%s\n' "$header" | awk 'BEGIN{IGNORECASE=1} /^ *X-Checksum-Sha256:/{print $0; exit}')
+ checksum_line=$(printf '%s\n' "$header" | grep -i "^ *X-Checksum-Sha256:" | head -n 1)
if [[ -z "$checksum_line" ]]; then
return 1
fi
diff --git a/scripts/install-docker-agent.sh b/scripts/install-docker-agent.sh
index f1a2effc41..bebd1b002f 100755
--- a/scripts/install-docker-agent.sh
+++ b/scripts/install-docker-agent.sh
@@ -1,5 +1,5 @@
# Generated file. Do not edit.
-# Bundled on: 2025-11-25T08:34:41Z
+# Bundled on: 2025-11-25T09:29:44Z
# Manifest: scripts/bundle.manifest
# === Begin: scripts/lib/common.sh ===
@@ -1767,7 +1767,7 @@ fetch_checksum_header() {
fi
local checksum_line
- checksum_line=$(printf '%s\n' "$header" | awk 'BEGIN{IGNORECASE=1} /^ *X-Checksum-Sha256:/{print $0; exit}')
+ checksum_line=$(printf '%s\n' "$header" | grep -i "^ *X-Checksum-Sha256:" | head -n 1)
if [[ -z "$checksum_line" ]]; then
return 1
fi