From 311abf3d2f04f03e0a44aa53d3e282fc7662a7e6 Mon Sep 17 00:00:00 2001 From: Olli Vanhoja Date: Sat, 14 Jan 2017 23:48:43 +0200 Subject: [PATCH] now-rm: Don't show URL for incomplete deployments (#221) Fixes this: > The following deployment will be removed permanently: XXXXXXXXXXXXXXXXXXXXXXXX https://null 21d ago --- bin/now-remove.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/now-remove.js b/bin/now-remove.js index 9a14e7c..b54472d 100755 --- a/bin/now-remove.js +++ b/bin/now-remove.js @@ -81,7 +81,7 @@ function readConfirmation(matches) { const tbl = table( matches.map(depl => { const time = chalk.gray(ms(new Date() - depl.created) + ' ago') - const url = chalk.underline(`https://${depl.url}`) + const url = depl.url ? chalk.underline(`https://${depl.url}`) : '' return [depl.uid, url, time] }), {align: ['l', 'r', 'l'], hsep: ' '.repeat(6)}