From 3b298c29a2ec180ec95b95f5b244d146c46c52a5 Mon Sep 17 00:00:00 2001 From: war-in Date: Wed, 17 Jan 2024 15:47:12 +0100 Subject: [PATCH] fmt & build --- dist/index.js | 12 +++++++++++- lib/download.js | 6 ++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7d8ca17..ce843d2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29969,7 +29969,17 @@ async function downloadUniversalSierraCompiler() { const command = "curl -L https://raw.githubusercontent.com/software-mansion/universal-sierra-compiler/master/scripts/install.sh | sh"; - exec(command); + exec(command, (error, stdout, stderr) => { + if (error) { + console.error( + `Error while installing \`universal-sierra-compiler\`: ${error.message}`, + ); + console.error(`Stderr: ${stderr}`); + return; + } + + console.log(`Successfully installed \`universal-sierra-compiler\``); + }); } ;// CONCATENATED MODULE: ./lib/main.js diff --git a/lib/download.js b/lib/download.js index f97190f..c0f1c38 100644 --- a/lib/download.js +++ b/lib/download.js @@ -46,8 +46,10 @@ export async function downloadUniversalSierraCompiler() { exec(command, (error, stdout, stderr) => { if (error) { - console.error(`Error while installing \`universal-sierra-compiler\`: ${error.message}`); - console.error(`Stderr: ${stderr}`) + console.error( + `Error while installing \`universal-sierra-compiler\`: ${error.message}`, + ); + console.error(`Stderr: ${stderr}`); return; }