sanitify output buildah from cmd

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
Luca Stocchi 2020-11-07 00:08:05 +01:00
parent 20c4f351ec
commit b5c3b226ac
No known key found for this signature in database
GPG key ID: 930BB00F3FCF30A4
5 changed files with 13 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export async function run(): Promise<void> {
if (creationResult.succeeded === false) {
return Promise.reject(new Error(creationResult.reason));
}
const containerId = creationResult.output;
const containerId = creationResult.output.replace('\n', '');
const copyResult = await cli.copy(containerId, content);
if (copyResult.succeeded === false) {