From 7c7ed590de7d8738fc3a3e9c10805dec699a33c9 Mon Sep 17 00:00:00 2001 From: Benjamin Lupton Date: Sun, 15 Sep 2024 15:20:32 +0800 Subject: [PATCH] echo-regexp.ts: fix for alpine linux /ref https://github.com/bevry/dorothy/actions/runs/10869075057/job/30159801132#step:4:92 --- commands/echo-regexp.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/echo-regexp.ts b/commands/echo-regexp.ts index ba4a54825..6132ba08e 100755 --- a/commands/echo-regexp.ts +++ b/commands/echo-regexp.ts @@ -115,5 +115,8 @@ if (quiet || (counting && !verbose)) { } if (counting) await write(`${countSep}${count}\n`) if ((fail || quiet) && count === 0) { - Deno.exitCode = 1 + Deno.exit(1) + // Deno.exitCode is Deno 1.44: https://github.com/denoland/deno/pull/23609 + // However Alpine APK is only Deno 1.43: https://pkgs.alpinelinux.org/packages?name=deno + // So use Deno.exit instead }