Skip to content

Commit

Permalink
fixed downloading phing.phar in project named project-base
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasLudvik committed Sep 27, 2024
1 parent abb3c9c commit 6de839e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/app/downloadPhing.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Console\Output\ConsoleOutput;

return static function () {
if (str_contains(__DIR__, 'project-base')) {
if (file_exists(__DIR__ . '/../../../parameters_monorepo.yaml')) {
$vendorDir = __DIR__ . '/../../../vendor';
} else {
$vendorDir = __DIR__ . '/../vendor';
Expand Down
5 changes: 5 additions & 0 deletions app/check-composer-json.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

if [ -f "../../parameters_monorepo.yaml" ]; then
echo 'Installing composer in monorepo project-base is not supported.'
exit 1
fi

if [ -h "composer.json" ]; then
echo 'Please run composer install in the app/ subfolder.'
exit 1
Expand Down

0 comments on commit 6de839e

Please sign in to comment.