From 8dab9f18c96fb218e7b5142729e9f0b3bbf074df Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 14 Dec 2022 14:47:50 +1300 Subject: [PATCH] FIX Always put public resources in a public/ dir --- src/RecipeInstaller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RecipeInstaller.php b/src/RecipeInstaller.php index 6233915..bd5d3b7 100644 --- a/src/RecipeInstaller.php +++ b/src/RecipeInstaller.php @@ -189,8 +189,7 @@ class RecipeInstaller extends LibraryInstaller $projectPath = dirname(realpath(Factory::getComposerFile() ?? '') ?? ''); // Find public path - $candidatePublicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH; - $publicPath = is_dir($candidatePublicPath ?? '') ? $candidatePublicPath : $projectPath; + $publicPath = $projectPath . DIRECTORY_SEPARATOR . RecipePlugin::PUBLIC_PATH; // Copy project files to root $name = $package->getName();