From: Vincent Vanwaelscappel Date: Thu, 3 Mar 2022 14:34:31 +0000 (+0100) Subject: wip #5041 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6c9b3643cc47cd20479345ef89874d1bf9b9dcd0;p=cubist_util.git wip #5041 --- diff --git a/src/Zip.php b/src/Zip.php index 149cb80..546db44 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -25,6 +25,7 @@ class Zip $cl->setArg(null, $zip); $cl->execute(); + if (stristr($cl->getOutput(), 'zipfile corrupt')) { $corrupted = $zip . '.corrupted'; rename($zip, $corrupted);