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.

Rename awk variable shadowing the exp builtin in the PVE setup script

rcourtman685c67cf3f6f
diff --git a/internal/api/setup_script_render.go b/internal/api/setup_script_render.go
index 7dd08771c4..68e06498f8 100644
--- a/internal/api/setup_script_render.go
+++ b/internal/api/setup_script_render.go
@@ -206,11 +206,11 @@ pulse_pve_token_expire_label() {
awk -F'│' -v token="$TOKEN_NAME" '
NR>3 {
name=$2
- exp=$3
+ expire_field=$3
gsub(/^[ \t]+|[ \t]+$/, "", name)
- gsub(/^[ \t]+|[ \t]+$/, "", exp)
+ gsub(/^[ \t]+|[ \t]+$/, "", expire_field)
if (name == token) {
- print exp
+ print expire_field
exit
}
}')