From 7d3777aef8ceb02ef607b8cd63f8369120f90660 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 28 Feb 2021 01:16:33 +1300 Subject: [PATCH] cli: fix ppman install output --- cli/commands/ppman_commands/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/commands/ppman_commands/install.js b/cli/commands/ppman_commands/install.js index 83da33a..4c4b10a 100644 --- a/cli/commands/ppman_commands/install.js +++ b/cli/commands/ppman_commands/install.js @@ -7,8 +7,8 @@ exports.describe = 'Installs the named package' const msg_format = { - 'color': p => `${p.success ? chalk.green.bold('✓') : chalk.red.bold('❌')} Installation ${p.success ? "succeeded" : "failed: " + p.message}`, - 'monochrome': p => `Installation ${p.success ? "succeeded" : "failed: " + p.message}`, + 'color': p => `${p.language ? chalk.green.bold('✓') : chalk.red.bold('❌')} Installation ${p.language ? "succeeded" : "failed: " + p.message}`, + 'monochrome': p => `Installation ${p.language ? "succeeded" : "failed: " + p.message}`, 'json': JSON.stringify }