diff --git a/run.sh b/run.sh index 2790b0c..e8b23f2 100755 --- a/run.sh +++ b/run.sh @@ -99,6 +99,7 @@ find files/photos/ -name "*".html -print -delete http_code=0 port="${ports%% *}" photos_uri=":$port/photos/" + beg_time="$SECONDS" while [[ $http_code != "200" ]]; do log "Sleeping for '$count' while waiting for $photos_uri to come up." sleep $count @@ -112,7 +113,9 @@ find files/photos/ -name "*".html -print -delete count=$(( count + 1 )) fi done - log "Finished checking for /photos/." + end_time="$SECONDS" + time="$(( $end_time - $beg_time ))" + log "Finished checking for /photos/ after $time seconds." } & ## Main ##