mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed typo in filename for posix agentupdate
This commit is contained in:
parent
9e06a24975
commit
50ef7a1f08
2 changed files with 2 additions and 2 deletions
|
@ -4114,7 +4114,7 @@ function agentUpdate_Start(updateurl, updateoptions) {
|
||||||
agentUpdate_Start._selfupdate = null;
|
agentUpdate_Start._selfupdate = null;
|
||||||
});
|
});
|
||||||
agentUpdate_Start._selfupdate.on('response', function (img) {
|
agentUpdate_Start._selfupdate.on('response', function (img) {
|
||||||
this._file = require('fs').createWriteStream(agentfilename + (process.platform == 'win32' ? '.update.exe' : 'update'), { flags: 'wb' });
|
this._file = require('fs').createWriteStream(agentfilename + (process.platform == 'win32' ? '.update.exe' : '.update'), { flags: 'wb' });
|
||||||
this._filehash = require('SHA384Stream').create();
|
this._filehash = require('SHA384Stream').create();
|
||||||
this._filehash.on('hash', function (h) {
|
this._filehash.on('hash', function (h) {
|
||||||
if (updateoptions != null && updateoptions.hash != null) {
|
if (updateoptions != null && updateoptions.hash != null) {
|
||||||
|
|
|
@ -417,7 +417,7 @@ function agentUpdate_Start(updateurl, updateoptions) {
|
||||||
agentUpdate_Start._selfupdate = null;
|
agentUpdate_Start._selfupdate = null;
|
||||||
});
|
});
|
||||||
agentUpdate_Start._selfupdate.on('response', function (img) {
|
agentUpdate_Start._selfupdate.on('response', function (img) {
|
||||||
this._file = require('fs').createWriteStream(agentfilename + (process.platform=='win32'?'.update.exe':'update'), { flags: 'wb' });
|
this._file = require('fs').createWriteStream(agentfilename + (process.platform=='win32'?'.update.exe':'.update'), { flags: 'wb' });
|
||||||
this._filehash = require('SHA384Stream').create();
|
this._filehash = require('SHA384Stream').create();
|
||||||
this._filehash.on('hash', function (h) {
|
this._filehash.on('hash', function (h) {
|
||||||
if (updateoptions != null && updateoptions.hash != null) {
|
if (updateoptions != null && updateoptions.hash != null) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue