fix: error during saving logs
This commit is contained in:
parent
7a8fe6d152
commit
6dd7f6274a
1 changed files with 0 additions and 2 deletions
|
|
@ -94,7 +94,6 @@ export const asyncExecShellStream = async ({
|
||||||
const array = stdout.split('\n');
|
const array = stdout.split('\n');
|
||||||
for (const line of array) {
|
for (const line of array) {
|
||||||
if (line !== '\n' && line !== '') {
|
if (line !== '\n' && line !== '') {
|
||||||
logs.push(line.replace('\n', ''))
|
|
||||||
debug && await saveBuildLog({
|
debug && await saveBuildLog({
|
||||||
line: `${line.replace('\n', '')}`,
|
line: `${line.replace('\n', '')}`,
|
||||||
buildId,
|
buildId,
|
||||||
|
|
@ -108,7 +107,6 @@ export const asyncExecShellStream = async ({
|
||||||
const array = stderr.split('\n');
|
const array = stderr.split('\n');
|
||||||
for (const line of array) {
|
for (const line of array) {
|
||||||
if (line !== '\n' && line !== '') {
|
if (line !== '\n' && line !== '') {
|
||||||
errorLogs.push(line.replace('\n', ''))
|
|
||||||
debug && await saveBuildLog({
|
debug && await saveBuildLog({
|
||||||
line: `${line.replace('\n', '')}`,
|
line: `${line.replace('\n', '')}`,
|
||||||
buildId,
|
buildId,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue