@enonic/cli-test
Advanced tools
Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "@enonic/cli-test", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Command-line interface for Enonic XP", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -146,5 +146,8 @@ #!/usr/bin/env node | ||
var src = `./dist/enonic_${PLATFORM_MAPPING[process.platform]}_${ARCH_MAPPING[process.arch]}/${opts.binName}`; | ||
var target = `./bin/${opts.binName}`; | ||
await fs.copyFile(src, target); | ||
var src = `dist/enonic_${PLATFORM_MAPPING[process.platform]}_${ARCH_MAPPING[process.arch]}/${opts.binName}`; | ||
var target = `bin/${opts.binName}`; | ||
await fs.copyFile(src, target, (err) => { | ||
if (err) throw err; | ||
verifyAndPlaceBinary(opts.binName, opts.binPath, callback); | ||
}); | ||
/* | ||
@@ -158,4 +161,5 @@ if (process.platform === "win32") { | ||
await execShellCommand(shellCommand); | ||
*/ | ||
await verifyAndPlaceBinary(opts.binName, opts.binPath, callback); | ||
*/ | ||
} | ||
@@ -162,0 +166,0 @@ |
200990790
199