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");
|
||||
} catch {}
|
||||
|
||||
if (
|
||||
commandOutput?.includes("Docker") ||
|
||||
commandOutput?.includes("docker") ||
|
||||
commandOutput?.includes("podman")
|
||||
) {
|
||||
if (["Docker", 'docker', 'podman'].includes(commandOutput?)) {
|
||||
break exit_if_docker_not_installed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user