ruined every thing

This commit is contained in:
2025-10-20 17:17:08 +00:00
parent 5b860d849c
commit 4d85b5671e
4 changed files with 25 additions and 15 deletions
+5 -1
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"