#296: Fix config new
This commit is contained in:
parent
24963406ea
commit
7c304ebb9b
|
@ -224,9 +224,13 @@ const copyFileSyncSilent = (to, from, flags) => {
|
|||
|
||||
function buildNewConfig() {
|
||||
askNewConfigQuestions( (err, configPath, config) => {
|
||||
if(err) { return;
|
||||
if(err) {
|
||||
return err;
|
||||
}
|
||||
|
||||
// ensure 'menus' exists
|
||||
mkdirsSync(paths.join(__dirname, '../../config/menus'));
|
||||
|
||||
const boardName = sanatizeFilename(config.general.boardName)
|
||||
.replace(/[^a-z0-9_-]/ig, '_')
|
||||
.replace(/_+/g, '_')
|
||||
|
|
Loading…
Reference in New Issue