diff --git a/src/goods.ts b/src/goods.ts index deb2a00c1b..7f9202a0ce 100644 --- a/src/goods.ts +++ b/src/goods.ts @@ -197,7 +197,7 @@ export async function spinner( result = await callback!() } finally { clearInterval(id as NodeJS.Timeout) - process.stderr.write(' '.repeat(process.stdout.columns - 1) + '\r') + process.stderr.write(' '.repeat((process.stdout.columns || 1) - 1) + '\r') } return result })