[ci] format

This commit is contained in:
matthewp 2023-01-26 20:36:29 +00:00 committed by fredkbot
parent 5c64324c0a
commit 5e3d538812

View file

@ -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!');
} }