Skip to content

Commit

Permalink
Merge pull request #511 from jsteinich/init_with_spaces
Browse files Browse the repository at this point in the history
Quote cdktf path in init templates
  • Loading branch information
skorfmann authored Feb 1, 2021
2 parents 714734b + 72a288f commit 25cc599
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/cdktf-cli/templates/csharp/.hooks.sscaff.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ exports.post = options => {

execSync(`dotnet restore`, { stdio: 'inherit' });

execSync(`\"${process.execPath}\" ${cli} get`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" ${cli} synth`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" \"${cli}\" get`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" \"${cli}\" synth`, { stdio: 'inherit' });

console.log(readFileSync('./help', 'utf-8'));
};
Expand Down
4 changes: 2 additions & 2 deletions packages/cdktf-cli/templates/java/.hooks.sscaff.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ exports.post = options => {
}

execSync(`mvn install`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" ${cli} get`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" ${cli} synth`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" \"${cli}\" get`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" \"${cli}\" synth`, { stdio: 'inherit' });

console.log(readFileSync('./help', 'utf-8'));
};
Expand Down
2 changes: 1 addition & 1 deletion packages/cdktf-cli/templates/python/.hooks.sscaff.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ exports.post = options => {
execSync(`pipenv install ${pypi_cdktf}`, { stdio: 'inherit' });
chmodSync('main.py', '700');

execSync(`\"${process.execPath}\" ${cli} get`, { stdio: 'inherit' });
execSync(`\"${process.execPath}\" \"${cli}\" get`, { stdio: 'inherit' });
execSync(`pipenv run python main.py`);

console.log(readFileSync('./help', 'utf-8'));
Expand Down

0 comments on commit 25cc599

Please sign in to comment.