Skip to content

Commit

Permalink
Updated: here flag in cms install
Browse files Browse the repository at this point in the history
  • Loading branch information
we-vikram-wri231 committed Mar 19, 2024
1 parent bbb5c00 commit afd3ef9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/commands/cms/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ export default class CmsInstall extends Command {
task: () => new Promise((resolve, reject) => {
{
let self = this;
fs.mkdir(self.target_dir, (err = null,result = null) => {
if (err != null) {
this.log("");
this.log(chalk.red("- Project Folder Already Exists"));
return reject(err);
}
resolve(result);
});
if(self.flags.here){
return resolve(true);
}
fs.mkdir(self.target_dir, (err = null,result = null) => {
if (err != null) {
this.log("");
this.log(chalk.red("- Project Folder Already Exists"));
return reject(err);
}
resolve(result);
});
}
})
},
Expand Down

0 comments on commit afd3ef9

Please sign in to comment.