Truncate wait_for_web_response.log before each wait invocation

This commit is contained in:
Jason Ertel committed 2021-05-19 18:37:08 -04:00
1 parent 25e2edc6d2
commit b440f73336
1 file changed
+1
+1
View File
@@ -487,6 +487,7 @@ wait_for_web_response() {
expected=$2
maxAttempts=${3:-300}
logfile=/root/wait_for_web_response.log
truncate -s 0 "$logfile"
attempt=0
while [[ $attempt -lt $maxAttempts ]]; do
attempt=$((attempt+1))