From 71c02b8696076a6068dc7b78dbc8359832a9014f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 21 Dec 2021 11:38:44 +0100 Subject: [PATCH] wait #4972 @0.5 --- app/Jobs/ProducePackage.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Jobs/ProducePackage.php b/app/Jobs/ProducePackage.php index b9a195b..b1d230f 100644 --- a/app/Jobs/ProducePackage.php +++ b/app/Jobs/ProducePackage.php @@ -46,7 +46,7 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique { $this->vdir->sync(true); - Zip::archive($this->dir,$this->dir.'.zip'); + Zip::archive($this->dir, $this->dir . '.zip'); } /** @@ -61,8 +61,12 @@ class ProducePackage implements ShouldQueue, ShouldBeUnique { foreach ($files as $match) { $match = str_replace('\\/', '/', $match); $f = public_path('storage/' . $match); + $f1 = storage_path('app/public/' . $match); + if (file_exists($f)) { $this->vdir->copy($f, 'storage/' . $match); + } else if (file_exists($f1)) { + $this->vdir->copy($f1, 'storage/' . $match); } else { echo 'Missing ' . $f . "\n"; } -- 2.39.5