2
0
Fork 0
mirror of https://code.forgejo.org/docker/build-push-action.git synced 2025-09-10 18:00:57 +00:00

Throw error message instead of exit code

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-10-21 21:07:52 +02:00
parent 5af5c5fa9d
commit de804a56b7
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
5 changed files with 76 additions and 14 deletions

View file

@ -7,7 +7,7 @@ export interface ExecResult {
stderr: string;
}
export const exec = async (command: string, args: string[] = [], silent: boolean): Promise<ExecResult> => {
export const exec = async (command: string, args: string[] = [], silent?: boolean): Promise<ExecResult> => {
let stdout: string = '';
let stderr: string = '';