Skip to content

Commit

Permalink
fixing gh action test
Browse files Browse the repository at this point in the history
  • Loading branch information
insign committed Apr 7, 2024
1 parent 03a1c8b commit 12c603e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/SevenZip.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,19 @@ public function usePackageProvided7ZipExecutable(): ?string
};

if ($os !== null && $arch !== null) {
return sprintf(
$path = sprintf(
"%s/../bin/7z%d-%s%s",
__DIR__,
$version,
$os,
$os === "mac" ? "" : "-" . $arch
);

$path = realpath($path);

if (is_executable($path)) {
return $path;
}
}

return null;
Expand Down
2 changes: 0 additions & 2 deletions tests/SevenZipTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,6 @@ public function testTarBeforeImplicit(): void
->target($tarPath)
->compress();


// Assert that the tar file exists
$this->assertFileExists($tarPath);
}

Expand Down

0 comments on commit 12c603e

Please sign in to comment.