#296: Fix config new

This commit is contained in:
Bryan Ashby 2020-07-28 20:34:30 -06:00
parent 24963406ea
commit 7c304ebb9b
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 5 additions and 1 deletions

View File

@ -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, '_')