]> _ Git - odl.git/commitdiff
wait #4972 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Dec 2021 10:38:44 +0000 (11:38 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Dec 2021 10:38:44 +0000 (11:38 +0100)
app/Jobs/ProducePackage.php

index b9a195bb7859d747da3bd456e391ef1829361169..b1d230f8bd77e08f9d2dfb6664ca322cf2e4d664 100644 (file)
@@ -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";
                 }