fix: markdown tests in ci
This commit is contained in:
2
.github/scripts/quickstart/index.mjs
vendored
2
.github/scripts/quickstart/index.mjs
vendored
@@ -18,7 +18,7 @@ if (!["plugin", "template"].includes(mode))
|
||||
throw new Error(`Unsupported mode ${mode}`)
|
||||
|
||||
//Check if target directory already exists
|
||||
const target = paths.join(__metrics, `source/${mode}s`, name)
|
||||
const target = paths.join(__metrics, `source/${{plugin:"plugins/community", template:"templates"}[mode]}`, name)
|
||||
if (fs.existsSync(target))
|
||||
throw new Error(`A ${mode} named ${name} already exists!`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user