Skip to content
This repository has been archived by the owner on Jun 25, 2023. It is now read-only.

Commit

Permalink
Specify directory in the system's temp directory to avoid complete fo…
Browse files Browse the repository at this point in the history
…lder cleanup
  • Loading branch information
tommy-muehle committed Jan 11, 2018
1 parent ade490a commit e2bd9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Installer/DownloadInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(DownloaderInterface $downloader, Filesystem $filesys
* @param PhivePackageInterface $package
*/
public function download(PhivePackageInterface $package) {
$tmpFile = $this->downloader->download($package, sys_get_temp_dir());
$tmpFile = $this->downloader->download($package, sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'phive');
$this->filesystem->rename($tmpFile, $package->getInstallationPath());

Silencer::call('chmod', $package->getInstallationPath(), 0777 & ~umask());
Expand Down

0 comments on commit e2bd9f9

Please sign in to comment.