Skip to content

Commit

Permalink
Make backup command work in phar
Browse files Browse the repository at this point in the history
  • Loading branch information
KorvinSzanto committed Sep 30, 2021
1 parent 04c2424 commit 5ecbcbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Backup/BackupCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ecbcbd

Please sign in to comment.