mirror of
https://github.com/DeLaGuardo/setup-clojure.git
synced 2024-12-28 01:11:02 +08:00
wip
This commit is contained in:
parent
b69e0e0189
commit
b34e48f43c
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -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
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user