Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Jan 17, 2024
1 parent 9cd4893 commit 519d8ba
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,13 @@ export 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\``);
});
}

0 comments on commit 519d8ba

Please sign in to comment.