From 5ecbcbd2d235aed19d9d21510ef454f4dd971514 Mon Sep 17 00:00:00 2001 From: Korvin Szanto Date: Thu, 30 Sep 2021 09:02:20 -0700 Subject: [PATCH] Make backup command work in phar --- src/Command/Backup/BackupCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command/Backup/BackupCommand.php b/src/Command/Backup/BackupCommand.php index 56cc436..7d51012 100644 --- a/src/Command/Backup/BackupCommand.php +++ b/src/Command/Backup/BackupCommand.php @@ -333,7 +333,7 @@ protected function compressDirectory(string $directory, string $outputDirectory, $this->output->writeln(sprintf('Compressing directory: %s', $outputFile)); - $build = new PharData($outputDirectory . '/' . $outputFile . '.tar', null, null); + $build = new PharData($outputDirectory . '/' . $outputFile . '.tar', 0); $build->buildFromDirectory($directory); $compressed = $build->compress(Phar::GZ);