Skip to content

Commit

Permalink
fmt & build
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Jan 17, 2024
1 parent 519d8ba commit 3b298c2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 11 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions lib/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3b298c2

Please sign in to comment.