Fixed typo in filename for posix agentupdate

Bryan Roe committed Feb 8, 2021 at 23:28 UTC 50ef7a1f089a1f58fda59d588bf69f7491d6a2da
2 files changed +2 -2
agents/meshcore.js
+1 -1
@@ -4114,7 +4114,7 @@ function agentUpdate_Start(updateurl, updateoptions) {
4114 agentUpdate_Start._selfupdate = null;
4115 });
4116 agentUpdate_Start._selfupdate.on('response', function (img) {
4117 - this._file = require('fs').createWriteStream(agentfilename + (process.platform == 'win32' ? '.update.exe' : 'update'), { flags: 'wb' });
4117 + this._file = require('fs').createWriteStream(agentfilename + (process.platform == 'win32' ? '.update.exe' : '.update'), { flags: 'wb' });
4118 this._filehash = require('SHA384Stream').create();
4119 this._filehash.on('hash', function (h) {
4120 if (updateoptions != null && updateoptions.hash != null) {
agents/recoverycore.js
+1 -1
@@ -417,7 +417,7 @@ function agentUpdate_Start(updateurl, updateoptions) {
417 agentUpdate_Start._selfupdate = null;
418 });
419 agentUpdate_Start._selfupdate.on('response', function (img) {
420 - this._file = require('fs').createWriteStream(agentfilename + (process.platform=='win32'?'.update.exe':'update'), { flags: 'wb' });
420 + this._file = require('fs').createWriteStream(agentfilename + (process.platform=='win32'?'.update.exe':'.update'), { flags: 'wb' });
421 this._filehash = require('SHA384Stream').create();
422 this._filehash.on('hash', function (h) {
423 if (updateoptions != null && updateoptions.hash != null) {