mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-18 21:27:51 +00:00
Preserve extension when installing node
This commit is contained in:
parent
6ca7df5dbc
commit
353908f098
@ -17,6 +17,11 @@ binary.download({
|
||||
}
|
||||
|
||||
var output = path.join(destination, 'node-' + process.platform + '-' + process.arch);
|
||||
|
||||
if(process.platform === 'win32') {
|
||||
output += '.exe';
|
||||
}
|
||||
|
||||
fs.renameSync(binaryPath, output);
|
||||
|
||||
console.log('NodeJS downloaded to ' + output);
|
||||
|
Loading…
Reference in New Issue
Block a user