From f003b8d56d6e62e7828782f3263f9769232dcf8f Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:44:45 +1300 Subject: [PATCH] FIX Always put public resources in a public/ dir (#31) --- src/RecipeInstaller.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RecipeInstaller.php b/src/RecipeInstaller.php index 01d4733..b1c9d11 100644 --- a/src/RecipeInstaller.php +++ b/src/RecipeInstaller.php @@ -185,8 +185,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();