fix: #113 limit ssh script output

This commit is contained in:
Dragan Filipovic 2023-02-21 16:53:56 +01:00
parent adb1a2ce99
commit 59827af83c

View File

@ -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);
} }
} }
); );