Skip to content

Commit afde60b

Browse files
committed
Correctedf line sep logic
1 parent 69bd7b8 commit afde60b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ let specSummary = {
1515
}
1616
let noWrap = (process.env.SYNC_NO_WRAP || false);
1717
let terminalWidth = (process.stdout.columns) * 0.9;
18-
let lineSeparator = "\n--------------------------------------------------------------------------------";
18+
let lineSeparator = "\n" + "-".repeat(terminalWidth);
19+
// Do not show the separator based on terminal width if no-wrap provided.
1920
if (noWrap) {
20-
lineSeparator = "\n" + "-".repeat(terminalWidth);
21+
lineSeparator = "\n--------------------------------------------------------------------------------";
2122
}
2223

2324
let getOptions = (auth, build_id) => {

0 commit comments

Comments
 (0)