readme + cleaning

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
This commit is contained in:
Luca Stocchi 2020-11-13 15:20:53 +01:00
parent 2168b4e067
commit 1196e988b8
No known key found for this signature in database
GPG key ID: 930BB00F3FCF30A4
4 changed files with 98 additions and 7 deletions

View file

@ -103,8 +103,8 @@ export class BuildahCli implements Buildah {
};
const exitCode = await exec.exec(this.executable, args, options);
if (exitCode === 1) {
return Promise.resolve({ succeeded: false, error: error });
return Promise.resolve({ succeeded: false, error });
}
return Promise.resolve({ succeeded: true, output: output });
return Promise.resolve({ succeeded: true, output });
}
}