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; }