Skip to content

Commit 11144c2

Browse files
committed
chore: simplify docker inspect stdout comparison
1 parent 304f1f4 commit 11144c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/manage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ async function getStatusFromCLI(): Promise<LocalstackStatus | undefined> {
4343
const result = await exec(
4444
"docker inspect -f '{{.State.Status}}' localstack-main",
4545
);
46-
if (/running/i.test(result.stdout)) {
46+
if (result.stdout.includes("running")) {
4747
return "running";
48-
} else if (/stopped/i.test(result.stdout)) {
48+
} else if (result.stdout.includes("stopped")) {
4949
return "stopped";
5050
}
5151
} catch {

0 commit comments

Comments
 (0)