Merge pull request #592 from devchat-ai/fix_workflow_missed
fix: Correct workflow directory path
This commit is contained in:
commit
d2b6ff42ae
@ -193,6 +193,7 @@ export function registerInstallCommandsCommand(
|
|||||||
async () => {
|
async () => {
|
||||||
const homePath = process.env.HOME || process.env.USERPROFILE || "";
|
const homePath = process.env.HOME || process.env.USERPROFILE || "";
|
||||||
const sysDirPath = path.join(homePath, ".chat", "scripts");
|
const sysDirPath = path.join(homePath, ".chat", "scripts");
|
||||||
|
const sysMericoDirPath = path.join(homePath, ".chat", "scripts", "merico");
|
||||||
const pluginDirPath = path.join(
|
const pluginDirPath = path.join(
|
||||||
UiUtilWrapper.extensionPath(),
|
UiUtilWrapper.extensionPath(),
|
||||||
"workflowsCommands"
|
"workflowsCommands"
|
||||||
@ -200,7 +201,7 @@ export function registerInstallCommandsCommand(
|
|||||||
|
|
||||||
const dcClient = new DevChatClient();
|
const dcClient = new DevChatClient();
|
||||||
|
|
||||||
if (!fs.existsSync(sysDirPath)) {
|
if (!fs.existsSync(sysMericoDirPath)) {
|
||||||
await copyDirectory(pluginDirPath, sysDirPath);
|
await copyDirectory(pluginDirPath, sysDirPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user