fix: #113 limit ssh script output

main
Dragan Filipovic 2023-02-21 16:53:56 +01:00
parent adb1a2ce99
commit 59827af83c
1 changed files with 3 additions and 2 deletions

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