Skip to content

Commit

Permalink
changed logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Itay Melo Krämer committed Sep 5, 2024
1 parent 924f664 commit 24c44b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generateNginxConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL;
foreach ($certFiles as $cert) {
if ($cert == '.' || $cert == '..') continue;
if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') continue;
if (pathinfo($cert, PATHINFO_EXTENSION) !== 'crt') continue;
if ($cert === 'default.crt') continue;
$domain = pathinfo($cert, PATHINFO_FILENAME);
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
Expand Down

0 comments on commit 24c44b7

Please sign in to comment.