Fix logic of chunk reading

This commit is contained in:
Matej Bačo 2025-05-19 04:35:44 +02:00
parent 3ba0565e44
commit 6090ca50fc

View file

@ -738,11 +738,12 @@ class Builds extends Action
$insideSeparation = true;
}
} else {
$logs = '';
$separator = \strpos($logs, '{APPWRITE_DETECTION_SEPARATOR_END}');
if ($separator !== false) {
$logs = \substr($logs, $separator + strlen('{APPWRITE_DETECTION_SEPARATOR_END}'));
$insideSeparation = false;
} else {
$logs = '';
}
}