Skip to content

Commit

Permalink
Fix pasto
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed May 8, 2024
1 parent f4d4cca commit 42c814e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Composer.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static function postAutoloadDump(Event $event)
$dataDir = \dirname($vendorDir) . '/data';
(new RemoteFetch($dataDir))->getLatestBundle(false, false);
self::dos2unixAll($dataDir);
(new RemoteFetch($dataDir))->getLatestBundle();

echo '[OK] Remote Fetch of latest CACert Bundle', PHP_EOL;
}
Expand All @@ -44,7 +45,7 @@ protected static function dos2unixAll($dataDir)
{
foreach (glob($dataDir . '/*.pem') as $pemFile) {
$contents = file_get_contents($pemFile);
$fixed = str_replace("\r\n", "\n", $pemFile);
$fixed = str_replace("\r\n", "\n", $contents);
file_put_contents($pemFile, $fixed);
}
}
Expand Down

0 comments on commit 42c814e

Please sign in to comment.