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:
parent
faca7837b0
commit
29f1eeb9e5
6 changed files with 569 additions and 579 deletions
|
@ -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;
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue