fix: #113 limit ssh script output
parent
adb1a2ce99
commit
59827af83c
|
@ -24,8 +24,9 @@ const remoteCmd = async (content, privateKeyPath, isRequired, label) => new Prom
|
||||||
console.warn(`${message} \n`, data, stderr);
|
console.warn(`${message} \n`, data, stderr);
|
||||||
handleError(message, isRequired, reject);
|
handleError(message, isRequired, reject);
|
||||||
} else {
|
} else {
|
||||||
console.log('✅ [CMD] Remote script executed. \n', data, stderr);
|
const limited = data.substring(0, 10000);
|
||||||
resolve(data);
|
console.log('✅ [CMD] Remote script executed. \n', limited, stderr);
|
||||||
|
resolve(limited);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue