linux-worker: automatically set job pwd if it is not specified in job description

This commit is contained in:
lxsang
2021-12-06 12:23:05 +01:00
parent dd3aae50c9
commit 98335a2a51
8 changed files with 13 additions and 3 deletions

View File

@ -37,6 +37,10 @@ class LinuxJob extends AntOSDKBaseJob {
this.result("Done");
};
socket.onopen = (e) => {
if(!this.job.data.pwd)
{
this.job.data.pwd = this.job.root;
}
// send the command
const cmd = {
path: path,