cleanup
This commit is contained in:
@@ -97,7 +97,7 @@ module.exports = {
|
||||
// }
|
||||
// }
|
||||
|
||||
system.run('touch ~/.pwcli_settings');
|
||||
await system.run('touch ~/.pwcli_settings');
|
||||
print.info(`Created configuration file ${chalk.yellow(`~/.pwcli_settings`)}`);
|
||||
const config = {
|
||||
gh_token: '',
|
||||
@@ -120,7 +120,7 @@ module.exports = {
|
||||
if (await (new Confirm({
|
||||
message: `Ok to save the these settings to ${chalk.yellow(`~/.pwcli_settings`)}?`
|
||||
})).run()) {
|
||||
system.run(`echo '${JSON.stringify(config)}' > ~/.pwcli_settings`);
|
||||
await system.run(`echo '${JSON.stringify(config)}' > ~/.pwcli_settings`);
|
||||
} else {
|
||||
print.info('Ok then.');
|
||||
if (toolbox.fromMenu()) await toolbox.menu.showMenu();
|
||||
|
||||
Reference in New Issue
Block a user