Skip to content

Commit

Permalink
Speed up installation on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Feb 2, 2024
1 parent c142310 commit ef8c53c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ const fs = require('fs');

function run(command) {
console.log(command);
execSync(command, {stdio: 'inherit'});
const env = Object.assign({}, process.env);
env.HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK = '1';
env.HOMEBREW_NO_INSTALL_CLEANUP = '1';
env.HOMEBREW_NO_INSTALL_UPGRADE = '1';
execSync(command, {stdio: 'inherit', env: env});
}

const image = process.env['ImageOS'];
Expand Down

0 comments on commit ef8c53c

Please sign in to comment.