fix: error during saving logs
This commit is contained in:
parent
7a8fe6d152
commit
6dd7f6274a
@ -94,7 +94,6 @@ export const asyncExecShellStream = async ({
|
||||
const array = stdout.split('\n');
|
||||
for (const line of array) {
|
||||
if (line !== '\n' && line !== '') {
|
||||
logs.push(line.replace('\n', ''))
|
||||
debug && await saveBuildLog({
|
||||
line: `${line.replace('\n', '')}`,
|
||||
buildId,
|
||||
@ -108,7 +107,6 @@ export const asyncExecShellStream = async ({
|
||||
const array = stderr.split('\n');
|
||||
for (const line of array) {
|
||||
if (line !== '\n' && line !== '') {
|
||||
errorLogs.push(line.replace('\n', ''))
|
||||
debug && await saveBuildLog({
|
||||
line: `${line.replace('\n', '')}`,
|
||||
buildId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user