diff --git a/src/Composer.php b/src/Composer.php index 5890af0..23f70a6 100644 --- a/src/Composer.php +++ b/src/Composer.php @@ -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; } @@ -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); } }