refactor to shorten the code
This commit is contained in:
parent
981ca7e9a4
commit
75ab130249
@ -56,11 +56,7 @@ export async function command(params: {
|
|||||||
?.toString("utf8");
|
?.toString("utf8");
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
if (
|
if (["Docker", 'docker', 'podman'].includes(commandOutput?)) {
|
||||||
commandOutput?.includes("Docker") ||
|
|
||||||
commandOutput?.includes("docker") ||
|
|
||||||
commandOutput?.includes("podman")
|
|
||||||
) {
|
|
||||||
break exit_if_docker_not_installed;
|
break exit_if_docker_not_installed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user