mirror of
https://code.forgejo.org/docker/build-push-action.git
synced 2025-09-16 18:06:55 +00:00
Use built-in getExecOutput
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
a7071c9d9a
commit
a437a4518f
6 changed files with 415 additions and 473 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