mirror of
https://github.com/wassname/talk.git
synced 2026-07-05 10:17:33 +08:00
Fixed issues with default setup
This commit is contained in:
+11
-1
@@ -35,7 +35,17 @@ program
|
||||
const performSetup = () => {
|
||||
|
||||
if (program.defaults) {
|
||||
return SettingsService.init();
|
||||
return SettingsService
|
||||
.init()
|
||||
.then(() => {
|
||||
console.log('Settings created.');
|
||||
console.log('\nTalk is now installed!');
|
||||
util.shutdown();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
util.shutdown(1);
|
||||
});
|
||||
}
|
||||
|
||||
// Get the current settings, we are expecing an error here.
|
||||
|
||||
Reference in New Issue
Block a user