Hardens the upload path check and the deploy verification

A remote of . or .. could have made the cleanup pass delete the wrong folder, so
such paths are refused before anything runs. A connection error now ends in the
normal summary instead of aborting the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-01 19:31:21 +01:00
co-authored by Claude Opus 5.5
parent afd9923950
commit 6d4d01238a
9 changed files with 215 additions and 15 deletions
+7 -2
View File
@@ -49,8 +49,13 @@ fetch() {
shift
: > "$work/headers"
: > "$work/body"
status="$(curl -sS --max-time 30 -o "$work/body" -D "$work/headers" \
-w '%{http_code}' "$@" "$base$path")"
# Geen verbinding of antwoord telt als fout; het script loopt door tot de
# samenvatting in plaats van af te breken
if ! status="$(curl -sS --max-time 30 -o "$work/body" -D "$work/headers" \
-w '%{http_code}' "$@" "$base$path")"; then
status="000"
fail "$path: geen antwoord van de server (curl faalde)"
fi
}
# Waarde van een header uit de laatst opgehaalde respons (hoofdletterongevoelig)