Skip to content

Commit

Permalink
Remove the binary so we can overwrite it while its open
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantintegral committed Sep 4, 2024
1 parent 921655a commit 5d541ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/BinaryInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ protected function installBinary($binary, $version, $url, $sha, $hashalgo = 'sha
$this->io->write(sprintf('%s v%s (%s) already exists in bin-dir, not overwriting.', $binary, $version, $sha));
}
else {
$fs->remove($binDestination);
$fs->copy($cacheExtractedBinary, $binDestination);
// Make executable.
if ('windows' !== $this->platform) {
Expand Down

0 comments on commit 5d541ad

Please sign in to comment.