Browse Source

Merge pull request #38 from kevmannn/master

Fix `now ls` output in case of 0 deployments
master
Leo Lamprecht 8 years ago
committed by GitHub
parent
commit
454b5f049f
  1. 2
      bin/now-list

2
bin/now-list

@ -105,7 +105,7 @@ async function list (token) {
return chalk.bold(name) + '\n\n' + indent(t, 2);
}).join('\n\n');
const elapsed = ms(new Date() - start);
console.log(`> ${deployments.length} deployment${deployments.length > 1 ? 's' : ''} found ${chalk.gray(`[${elapsed}]`)}`);
console.log(`> ${deployments.length} deployment${deployments.length !== 1 ? 's' : ''} found ${chalk.gray(`[${elapsed}]`)}`);
if (text) console.log('\n' + text + '\n');
}

Loading…
Cancel
Save