mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(console) getSpawn
This commit is contained in:
parent
02b326cdd1
commit
d3fc54b24d
1 changed files with 1 additions and 2 deletions
|
|
@ -204,7 +204,6 @@
|
|||
|
||||
function getSpawn(сommand, options, callback) {
|
||||
var cmd, error,
|
||||
addNewLine = CloudFunc.addNewLine,
|
||||
args = сommand.split(' '),
|
||||
send = function(error, data) {
|
||||
var exec = {
|
||||
|
|
@ -215,7 +214,7 @@
|
|||
Util.exec(callback, exec);
|
||||
},
|
||||
sendError = function(error) {
|
||||
var errorStr = addNewLine(error + '');
|
||||
var errorStr = CloudFunc.addNewLine(error + '');
|
||||
|
||||
Util.log(error);
|
||||
send(errorStr, null);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue