From 454bdc720d4694278ccf87c9d2e3fd4892566627 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 22 Mar 2023 10:20:28 +0100 Subject: [PATCH] wip #5817 @0.25 --- src/CommandLine/Inkscape.php | 27 --------------------------- src/Zip.php | 2 +- 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 src/CommandLine/Inkscape.php diff --git a/src/CommandLine/Inkscape.php b/src/CommandLine/Inkscape.php deleted file mode 100644 index dd926fc..0000000 --- a/src/CommandLine/Inkscape.php +++ /dev/null @@ -1,27 +0,0 @@ -setArg('f', $file); - foreach ($verbs as $verb) { - $this->setArg('verb', $verb); - } - } - - public function strokeToPath($file) - { - $this->openFileAndApplyVerbs($file, ['EditSelectAll', 'StrokeToPath', 'FileSave', 'FileQuit']); - } -} \ No newline at end of file diff --git a/src/Zip.php b/src/Zip.php index 85aee80..259715b 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -23,9 +23,9 @@ class Zip $cl->setArg('j'); } $cl->setArg(null, $zip); + $cl->setArg('x', '"__MACOSX/*"'); $cl->execute(); - if (stristr($cl->getOutput(), 'zipfile corrupt')) { $corrupted = $zip . '.corrupted'; rename($zip, $corrupted); -- 2.39.5