Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wtyd committed Feb 8, 2024
1 parent 79d87bc commit d63b119
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/Commands/Zero/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,11 @@ private function tarBuild($name): BuildCommand
function () use ($name) {
$phar = new PharData($this->build->getTarName());
$phar->addFile($this->build->getBuildPath() . $name);
$metadata = $phar->getMetaData();
foreach ($metadata['files'] as $file => $data) {
$this->info("Nombre del archivo: $file\n");
$this->info("Permisos: " . decoct($data['mode'] & 0777) . "\n"); // Convertir los permisos a octal
$permisos = $data['mode'] & 0111;

foreach ($phar as $file) {
$this->info("Nombre del archivo: " . $file->getFilename() . "\n");
$this->info("Permisos: " . decoct($file->getPerms() & 0777) . "\n"); // Convertir los permisos a octal
$permisos = $file->getPerms() & 0111;
if ($permisos) {
$this->info("El archivo tiene permiso de ejecución.\n");
} else {
Expand Down

0 comments on commit d63b119

Please sign in to comment.