This commit is contained in:
Kirill Chernyshov 2020-08-20 12:09:43 +02:00
parent b69e0e0189
commit b34e48f43c
No known key found for this signature in database
GPG Key ID: 425B3AB78FBCFBDB
3 changed files with 6 additions and 3 deletions

3
dist/index.js vendored
View File

@ -3298,7 +3298,8 @@ function installLeiningen(binScript, destinationFolder) {
if (!IS_WINDOWS) {
fs.chmodSync(path.join(binDir, `lein`), '0755');
}
yield exec.exec(`${IS_WINDOWS ? 'powershell ' : ''}.${IS_WINDOWS ? '\\' : '/'}lein${IS_WINDOWS ? '.bat' : ''} version`, [], {
const version_cmd = IS_WINDOWS ? 'powershell .\\lein.ps1 version' : './lein version';
yield exec.exec(version_cmd, [], {
cwd: path.join(destinationFolder, 'leiningen', 'bin'),
env: {
LEIN_HOME: path.join(destinationFolder, 'leiningen')

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -61,8 +61,10 @@ async function installLeiningen(
fs.chmodSync(path.join(binDir, `lein`), '0755')
}
const version_cmd = IS_WINDOWS ? 'powershell .\\lein.ps1 version' : './lein version'
await exec.exec(
`${IS_WINDOWS ? 'powershell ' : ''}.${IS_WINDOWS ? '\\' : '/'}lein${IS_WINDOWS ? '.bat' : ''} version`,
version_cmd,
[],
{
cwd: path.join(destinationFolder, 'leiningen', 'bin'),