Skip to content

Commit 504755b

Browse files
SRWieZgwleuverink
andauthored
fix: custom php binary cleanup (#50)
Co-authored-by: Willem Leuverink <willem@leuver.ink>
1 parent ab72c3b commit 504755b

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)