mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-01-30 04:32:02 +00:00
Fix glob pattern to use forward slashes (#1241)
Normalize source directory path for glob pattern compatibility. Reviewed-by: Alex Verkhovsky <alexey.verkhovsky@gmail.com>
This commit is contained in:
@@ -108,7 +108,10 @@ async function resolveSubagentFiles(handlerBaseDir, subagentConfig, subagentChoi
|
|||||||
const resolved = [];
|
const resolved = [];
|
||||||
|
|
||||||
for (const file of filesToCopy) {
|
for (const file of filesToCopy) {
|
||||||
const pattern = path.join(sourceDir, '**', file);
|
// Use forward slashes for glob pattern (works on both Windows and Unix)
|
||||||
|
// Convert backslashes to forward slashes for glob compatibility
|
||||||
|
const normalizedSourceDir = sourceDir.replaceAll('\\', '/');
|
||||||
|
const pattern = `${normalizedSourceDir}/**/${file}`;
|
||||||
const matches = await glob(pattern);
|
const matches = await glob(pattern);
|
||||||
|
|
||||||
if (matches.length > 0) {
|
if (matches.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user