Skip to content

Commit ea0039a

Browse files
committed
feat(opencollective prompt): fix azure ci
1 parent ea906d8 commit ea0039a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/opencollective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function emoji(emoji) {
1313
}
1414

1515
function print(str = "", color = "dim") {
16-
const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tput cols").toString());
16+
const terminalCols = process.platform === "win32" ? 80 : parseInt(child_process.execSync("tty -s && tput cols").toString());
1717
// eslint-disable-next-line no-control-regex
1818
const ansiEscapeSeq = /\u001b\[[0-9]{1,2}m/g;
1919
const strLength = str.replace(ansiEscapeSeq, "").length;

0 commit comments

Comments
 (0)