From c49ad588091cfb6bb1bbdb287ebb4572fc31bcac Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Mon, 5 May 2025 20:28:08 +0100 Subject: [PATCH] Remove temporary phar when self-updating --- src/Command/SelfUpdateCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/SelfUpdateCommand.php b/src/Command/SelfUpdateCommand.php index 8f55101b..a94483d4 100644 --- a/src/Command/SelfUpdateCommand.php +++ b/src/Command/SelfUpdateCommand.php @@ -144,6 +144,7 @@ public function execute(InputInterface $input, OutputInterface $output): int OutputInterface::VERBOSITY_VERBOSE, ); SudoFilePut::contents($fullPathToSelf, file_get_contents($pharFilename->filePath)); + unlink($pharFilename->filePath); $output->writeln('✅ PIE has been upgraded to ' . $latestRelease->tag . '');