mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-21 21:01:43 +08:00
fix: engines.exec*** reports error
This commit is contained in:
parent
0d94c36d8c
commit
714cbd5759
@ -28,12 +28,12 @@ module.exports = function(__runtime__, scope){
|
||||
c = c || {};
|
||||
c.path = c.path || files.cwd();
|
||||
if(c.path){
|
||||
if(typeof(c.path) == "string"){
|
||||
config.requirePath([c.path]);
|
||||
config.executePath(c.path);
|
||||
}else{
|
||||
if(Array.isArray(c.path)){
|
||||
config.requirePath(c.path);
|
||||
config.executePath(c.path[0]);
|
||||
}else{
|
||||
config.requirePath([c.path]);
|
||||
config.executePath(c.path);
|
||||
}
|
||||
}
|
||||
c.delay = c.delay || 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user