From 42c814e0756a1c80b905ea41dafd6204eb43bd62 Mon Sep 17 00:00:00 2001 From: Paragon Initiative Enterprises Date: Wed, 8 May 2024 11:53:53 -0400 Subject: [PATCH] Fix pasto --- src/Composer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }