mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
trim inside scope
This commit is contained in:
@ -63,11 +63,10 @@ function run() {
|
|||||||
else {
|
else {
|
||||||
// the *entire* stdout and stderr (buffered)
|
// the *entire* stdout and stderr (buffered)
|
||||||
console.log(`stdout: ${stdout}`);
|
console.log(`stdout: ${stdout}`);
|
||||||
myOutput = myOutput + `${stdout}`;
|
myOutput = myOutput + `${stdout}`.trim();
|
||||||
console.log(`stderr: ${stderr}`);
|
console.log(`stderr: ${stderr}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
myOutput = myOutput.trim();
|
|
||||||
// only contents of workspace can be changed by actions and used by subsequent actions
|
// only contents of workspace can be changed by actions and used by subsequent actions
|
||||||
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
||||||
yield exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
yield exec.exec(`mkdir -p rpmbuild/SRPMS`);
|
||||||
|
@ -70,12 +70,11 @@ async function run() {
|
|||||||
} else {
|
} else {
|
||||||
// the *entire* stdout and stderr (buffered)
|
// the *entire* stdout and stderr (buffered)
|
||||||
console.log(`stdout: ${stdout}`);
|
console.log(`stdout: ${stdout}`);
|
||||||
myOutput = myOutput+`${stdout}`;
|
myOutput = myOutput+`${stdout}`.trim();
|
||||||
console.log(`stderr: ${stderr}`);
|
console.log(`stderr: ${stderr}`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
myOutput = myOutput.trim();
|
|
||||||
|
|
||||||
// only contents of workspace can be changed by actions and used by subsequent actions
|
// only contents of workspace can be changed by actions and used by subsequent actions
|
||||||
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
// So copy all generated rpms into workspace , and publish output path relative to workspace
|
||||||
|
Reference in New Issue
Block a user