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:
@ -2,6 +2,7 @@
|
||||
AntOSDK: development API for AntOS based applications/projects
|
||||
|
||||
## Change logs
|
||||
- 0.0.13: allow linux-job handle to set defaut pwd if it is not specified in job description
|
||||
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
||||
- 0.0.11: Update AntOS API v1.2.1
|
||||
- 0.0.10: fix binary readfile bug
|
||||
|
@ -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,
|
||||
|
@ -7,7 +7,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "mrsang@iohub.dev"
|
||||
},
|
||||
"version": "0.0.12-a",
|
||||
"version": "0.0.13-a",
|
||||
"category": "Development",
|
||||
"iconclass": "fa fa-cog",
|
||||
"mimes": [
|
||||
|
Reference in New Issue
Block a user