Skip to content

Commit

Permalink
Merge pull request #160 from hummingbot/feat/copy-lists
Browse files Browse the repository at this point in the history
(feat) copy lists upon startup
  • Loading branch information
fengtality authored Jul 17, 2023
2 parents 2230acf + 5ec7cad commit 3a28f3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/services/config-manager-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,13 @@ export class ConfigManagerV2 {
// copy from template
fs.copyFileSync(path.join(ConfigTemplatesDir, 'root.yml'), rootPath);
}

const listsPath = path.join(ConfigDir, 'lists');
if (!fs.existsSync(listsPath)) {
// copy from template
fse.copySync(path.join(ConfigTemplatesDir, 'lists'), listsPath);
}

ConfigManagerV2._instance = new ConfigManagerV2(rootPath);
}
return ConfigManagerV2._instance;
Expand Down

0 comments on commit 3a28f3b

Please sign in to comment.