Skip to content

Commit

Permalink
${workspaceFolder} is not working for "environmentSetupScript" option…
Browse files Browse the repository at this point in the history
… in project cmake-kits.json file microsoft#1309

Signed-off-by: alan-wr <aijun.shi@windriver.com>
  • Loading branch information
alan-wr committed Aug 22, 2020
1 parent 2f28ef7 commit a27f649
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -589,12 +589,11 @@ export async function getShellScriptEnvironment(kit: Kit, opts?: expand.Expansio
let script = '';
let run_command = '';

let environmentSetupScript = kit.environmentSetupScript + '';
let environmentSetupScript = kit.environmentSetupScript;
if (opts) {
environmentSetupScript = await expand.expandString(environmentSetupScript, opts);
}

// environmentSetupScript = await expand.expandString(${kit.environmentSetupScript}, CMakeDriver.expansionOptions);
if (process.platform == 'win32') { // windows
script += `call "${environmentSetupScript}"\r\n`; // call the user batch script
script += `set >> ${environment_path}`; // write env vars to temp file
Expand Down

0 comments on commit a27f649

Please sign in to comment.