mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-05 01:11:36 +02:00
Merge branch '0.0.9-alpha' of ssh://numinibsd/git/base/enigma-bbs into user-interruptions
This commit is contained in:
commit
5a74cdc8d9
3 changed files with 54 additions and 31 deletions
|
@ -257,15 +257,18 @@ function buildNewConfig() {
|
|||
return;
|
||||
}
|
||||
|
||||
const bn = sanatizeFilename(config.general.boardName).replace(/ /g, '_').toLowerCase();
|
||||
const menuFile = `${bn}.hjson`;
|
||||
const bn = sanatizeFilename(config.general.boardName)
|
||||
.replace(/[^a-z0-9_\-]/ig, '_')
|
||||
.replace(/_+/g, '_')
|
||||
.toLowerCase();
|
||||
const menuFile = `${bn}-menu.hjson`;
|
||||
copyFileSyncSilent(
|
||||
paths.join(__dirname, '../../config/menu.hjson'),
|
||||
paths.join(__dirname, '../../config/', menuFile),
|
||||
fs.constants.COPYFILE_EXCL
|
||||
);
|
||||
|
||||
const promptFile = `${bn}_prompt.hjson`;
|
||||
const promptFile = `${bn}-prompt.hjson`;
|
||||
copyFileSyncSilent(
|
||||
paths.join(__dirname, '../../config/prompt.hjson'),
|
||||
paths.join(__dirname, '../../config/', promptFile),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue