chore: cascade main → dev (ff3e4e3) [skip ci]
#48
@@ -103,7 +103,7 @@ jobs:
|
||||
if [ "$PLATFORM" = "joomla" ]; then
|
||||
MANIFEST=$(find . -maxdepth 3 -name "*.xml" ! -path "./.git/*" -exec grep -l '<extension' {} \; 2>/dev/null | head -1 || true)
|
||||
if [ -n "$MANIFEST" ]; then
|
||||
ELEM=$(sed -n 's/.*<element>\([^<]*\)<\/element>.*//p' "$MANIFEST" | head -1)
|
||||
ELEM=$(grep -oP "<element>\K[^<]+" "$MANIFEST" 2>/dev/null | head -1)
|
||||
[ -n "$ELEM" ] && EXT_ELEMENT="$ELEM"
|
||||
fi
|
||||
fi
|
||||
|
||||
@@ -68,6 +68,11 @@ declare(strict_types=1);
|
||||
$repoRoot = dirname(__DIR__);
|
||||
$autoloader = $repoRoot . '/vendor/autoload.php';
|
||||
|
||||
// Support global Composer installs (e.g. composer global require)
|
||||
if (isset($GLOBALS['_composer_autoload_path'])) {
|
||||
$autoloader = $GLOBALS['_composer_autoload_path'];
|
||||
}
|
||||
|
||||
if (!is_file($autoloader)) {
|
||||
fwrite(STDERR, "Error: vendor/autoload.php not found.\nRun: composer install\n");
|
||||
exit(2);
|
||||
|
||||
Reference in New Issue
Block a user