Skip to content

Commit be5c791

Browse files
committed
fix: custom php binary cleanup
1 parent 09e9a2c commit be5c791

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Builder/Concerns/PrunesVendorDirectory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ public function pruneVendorDirectory()
2626

2727
// Remove custom php binary package directory
2828
$binaryPackageDirectory = $this->binaryPackageDirectory();
29-
if (! empty($binaryPackageDirectory) && $filesystem->exists($this->buildPath($binaryPackageDirectory))) {
30-
$binariesInBuildPath = $this->buildPath("app/{$binaryPackageDirectory}");
31-
$filesystem->remove($binariesInBuildPath);
29+
if (! empty($binaryPackageDirectory) && $filesystem->exists($this->buildPath("app/{$binaryPackageDirectory}"))) {
30+
$filesystem->remove($this->buildPath("app/{$binaryPackageDirectory}"));
3231
}
3332
}
3433
}

0 commit comments

Comments
 (0)