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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user