ruined every thing

This commit is contained in:
2025-10-20 17:17:08 +00:00
parent dbe4dfc2bc
commit b3041edbdc
4 changed files with 25 additions and 15 deletions

View File

@@ -75,6 +75,10 @@ list_failures() {
}
# --- main loop ---
# NOTE: remove temp response body on any exit
trap 'rm -f "$tmpb" 2> /dev/null' EXIT INT HUP
while :; do
log info "pooling ${WHITE}${POLLING_INTERVAL_SEC}${NC} sec"
i=1
@@ -83,7 +87,7 @@ while :; do
[ -n "${srv:-}" ] || break
tok=$(get_csv "$TOKENS" "$i") || tok="-"
url="${srv%/}/status"
url="${srv%/}"
auth_h=""
[ "${tok}" != "-" ] && [ -n "${tok}" ] && auth_h="-H Authorization: Basic\ $tok"