From deea02a1bfe114c9bce2a6ea94337ff99c27e753 Mon Sep 17 00:00:00 2001 From: Kevin Donahue Date: Fri, 23 Sep 2016 17:38:19 -0400 Subject: [PATCH] Fix `now ls` output in case of 0 deployments --- bin/now-list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/now-list b/bin/now-list index c915c89..11766b2 100755 --- a/bin/now-list +++ b/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'); }