mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-12 22:03:29 +02:00
linux-worker: automatically set job pwd if it is not specified in job description
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user