[ci] format
This commit is contained in:
parent
5c64324c0a
commit
5e3d538812
1 changed files with 2 additions and 4 deletions
|
@ -301,10 +301,8 @@ export async function main() {
|
||||||
// Add a check to see if there is already a .git directory and skip 'git init' if yes (with msg to output)
|
// Add a check to see if there is already a .git directory and skip 'git init' if yes (with msg to output)
|
||||||
const gitDir = './.git';
|
const gitDir = './.git';
|
||||||
if (fs.existsSync(gitDir)) {
|
if (fs.existsSync(gitDir)) {
|
||||||
ora().info(
|
ora().info(dim('A .git directory already exists. Skipping creating a new Git repository.'));
|
||||||
dim('A .git directory already exists. Skipping creating a new Git repository.')
|
} else {
|
||||||
);
|
|
||||||
} else {
|
|
||||||
await execaCommand('git init', { cwd });
|
await execaCommand('git init', { cwd });
|
||||||
ora().succeed('Git repository created!');
|
ora().succeed('Git repository created!');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue