mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(cloudcmd) terminal-run: return -1, when not load
This commit is contained in:
parent
e44e4fa47d
commit
391269b1ed
2 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ module.exports = function loadModule(params) {
|
|||
if (e)
|
||||
return console.error(e);
|
||||
|
||||
await a.show(...args);
|
||||
return await a.show(...args);
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ module.exports.init = async () => {
|
|||
|
||||
module.exports.show = promisify((options = {}, fn) => {
|
||||
if (!Loaded)
|
||||
return;
|
||||
return fn(null, -1);
|
||||
|
||||
if (!config('terminal'))
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue