refactor to shorten the code

This commit is contained in:
Mislav Perić 2025-01-23 14:42:03 +01:00
parent 981ca7e9a4
commit 75ab130249

View File

@ -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;
} }