1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2025-05-11 00:49:30 +02:00

Use built-in getExecOutput

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-06-23 16:11:52 +02:00
parent faca7837b0
commit 29f1eeb9e5
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
6 changed files with 569 additions and 579 deletions

View file

@ -1,7 +0,0 @@
import * as exec from './exec';
export async function isDaemonRunning(): Promise<boolean> {
return await exec.exec(`docker`, ['version', '--format', '{{.Server.Os}}'], true).then(res => {
return !res.stdout.includes(' ') && res.success;
});
}