diff --git a/packages/cdktf-cli/templates/csharp/.hooks.sscaff.js b/packages/cdktf-cli/templates/csharp/.hooks.sscaff.js index 079faec338..0e8fa8c4ee 100644 --- a/packages/cdktf-cli/templates/csharp/.hooks.sscaff.js +++ b/packages/cdktf-cli/templates/csharp/.hooks.sscaff.js @@ -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')); }; diff --git a/packages/cdktf-cli/templates/java/.hooks.sscaff.js b/packages/cdktf-cli/templates/java/.hooks.sscaff.js index eb22f32773..303afe851e 100644 --- a/packages/cdktf-cli/templates/java/.hooks.sscaff.js +++ b/packages/cdktf-cli/templates/java/.hooks.sscaff.js @@ -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')); }; diff --git a/packages/cdktf-cli/templates/python/.hooks.sscaff.js b/packages/cdktf-cli/templates/python/.hooks.sscaff.js index df5a2e3f77..fa542962b8 100644 --- a/packages/cdktf-cli/templates/python/.hooks.sscaff.js +++ b/packages/cdktf-cli/templates/python/.hooks.sscaff.js @@ -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'));