mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-17 16:53:13 +00:00
Fixed macOS related issues with MeshCore tests.
Fixed bug in macOS clipboard where 0x0D0A was tacked on the end of the buffer Fixed bug with customized agents, where MeshAgent.isService was returning the wrong value
This commit is contained in:
@@ -952,6 +952,7 @@ function macos_messageBox()
|
||||
ret.child.on('exit', function ()
|
||||
{
|
||||
var res = this.stdout.str.split('\x1e')[1];
|
||||
if (res.length > 2) { res = res.substring(0, res.length - 2); }
|
||||
this.promise._res(res);
|
||||
});
|
||||
ret.child.stdin.write('su - ' + ret.name + '\n');
|
||||
@@ -1128,6 +1129,7 @@ function macos_messageBox()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this._shell.stdout.str.length > 2) { this._shell.stdout.str = this._shell.stdout.str.substring(0, this._shell.stdout.str.length - 2); }
|
||||
this.end(translateObject({ command: 'readClip', clipValue: this._shell.stdout.str }));
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user