Skip to content

Commit

Permalink
chore: fix ensureSDK when calling e init for the first time (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleinsc authored Oct 16, 2024
1 parent 45be6da commit 40d1778
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/e-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,6 @@ program
checkGlobalGitConfig();
}

// ensure macOS SDKs are loaded
if (process.platform === 'darwin') {
ensureSDK();
}

const config = createConfig(options);

// make sure the config name is new
Expand All @@ -197,6 +192,11 @@ program
const opts = { stdio: 'inherit' };
childProcess.execFileSync(process.execPath, [e, 'use', name], opts);

// ensure macOS SDKs are loaded
if (process.platform === 'darwin') {
ensureSDK();
}

ensureRoot(config, !!options.force);

// (maybe) run sync to ensure external binaries are downloaded
Expand Down

0 comments on commit 40d1778

Please sign in to comment.