Fix typo, --w was not getting recognized.

This commit is contained in:
2025-09-19 13:21:36 -07:00
parent 98e52e6833
commit e5542ed8bb

2
run.sh
View File

@@ -103,7 +103,7 @@ find files/photos/ -name "*".html -print -delete
log "Sleeping for '$count' while waiting for $photos_uri to come up." log "Sleeping for '$count' while waiting for $photos_uri to come up."
sleep $count sleep $count
log "Checking if $photos_uri is available." log "Checking if $photos_uri is available."
http_code="`curl --silent --fail --w '\n%{http_code}' localhost$photos_uri | tail -n 1`" http_code="`curl --silent --fail -w '\n%{http_code}' localhost$photos_uri | tail -n 1`"
log "Check for $photos_uri responded with '$http_code'." log "Check for $photos_uri responded with '$http_code'."
if (( $count >= 10 )); then if (( $count >= 10 )); then
log "Giving up on loading $photos_uri after '$count' attempts." log "Giving up on loading $photos_uri after '$count' attempts."