Skip to content

Commit 0fd6125

Browse files
authored
Merge pull request #233 from asgrim/remove-temporary-phar
Remove temporary phar when self-updating
2 parents 7479ee8 + c49ad58 commit 0fd6125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Command/SelfUpdateCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
144144
OutputInterface::VERBOSITY_VERBOSE,
145145
);
146146
SudoFilePut::contents($fullPathToSelf, file_get_contents($pharFilename->filePath));
147+
unlink($pharFilename->filePath);
147148

148149
$output->writeln('<info>✅ PIE has been upgraded to ' . $latestRelease->tag . '</info>');
149150

0 commit comments

Comments
 (0)