From 11144c2857ac5afac4aab2aa3c20dd5262970633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristian=20Pallar=C3=A9s?= Date: Tue, 2 Sep 2025 17:19:20 +0200 Subject: [PATCH] chore: simplify docker inspect stdout comparison --- src/utils/manage.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/manage.ts b/src/utils/manage.ts index 5b9b8b0..42eae83 100644 --- a/src/utils/manage.ts +++ b/src/utils/manage.ts @@ -43,9 +43,9 @@ async function getStatusFromCLI(): Promise { const result = await exec( "docker inspect -f '{{.State.Status}}' localstack-main", ); - if (/running/i.test(result.stdout)) { + if (result.stdout.includes("running")) { return "running"; - } else if (/stopped/i.test(result.stdout)) { + } else if (result.stdout.includes("stopped")) { return "stopped"; } } catch {