Skip to content

Commit 97f18c6

Browse files
committed
fixing small bug
1 parent 052e74b commit 97f18c6

2 files changed

Lines changed: 10 additions & 11 deletions

File tree

src/commands/compare.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,15 @@ export async function compareMany(
5757

5858
const skipping = !fs.existsSync(envPath) || !fs.existsSync(examplePath);
5959

60+
printHeader(envName, exampleName, opts.json ?? false, skipping);
61+
6062
if (skipping) {
61-
printHeader(envName, exampleName, opts.json ?? false, skipping);
6263
exitWithError = true;
6364
entry.skipped = { reason: 'missing file' };
6465
opts.collect?.(entry);
6566
continue;
6667
}
6768

68-
printHeader(envName, exampleName, opts.json ?? false, skipping);
69-
7069
// Parse and filter env files
7170
const currentFull = parseEnvFile(envPath);
7271
const exampleFull = parseEnvFile(examplePath);
@@ -211,12 +210,12 @@ export async function compareMany(
211210

212211
const envNotIgnored = filtered.gitignoreIssue !== null;
213212

214-
printFixTips(
215-
filtered,
216-
envNotIgnored,
217-
opts.json ?? false,
218-
opts.fix ?? false,
219-
);
213+
printFixTips(
214+
filtered,
215+
envNotIgnored,
216+
opts.json ?? false,
217+
opts.fix ?? false,
218+
);
220219

221220
// Apply auto-fix if requested
222221
if (opts.fix) {

src/services/ensureFilesOrPrompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function ensureFilesOrPrompt(args: {
6767
fs.writeFileSync(envPath, exampleContent);
6868
console.log(
6969
chalk.green(
70-
`✅ ${path.basename(envPath)} file created successfully from ${path.basename(examplePath)}.\n`,
70+
`✅ ${path.basename(envPath)} file created successfully from ${path.basename(examplePath)}.`,
7171
),
7272
);
7373
warnIfEnvNotIgnored({ envFile: path.basename(envPath) });
@@ -106,7 +106,7 @@ export async function ensureFilesOrPrompt(args: {
106106
fs.writeFileSync(examplePath, envContent);
107107
console.log(
108108
chalk.green(
109-
`✅ ${path.basename(examplePath)} file created successfully from ${path.basename(envPath)}.\n`,
109+
`✅ ${path.basename(examplePath)} file created successfully from ${path.basename(envPath)}.`,
110110
),
111111
);
112112
}

0 commit comments

Comments
 (0)