Skip to content

Commit

Permalink
echo-regexp.ts: fix for alpine linux
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Sep 15, 2024
1 parent 6838a37 commit 7c7ed59
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion commands/echo-regexp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7c7ed59

Please sign in to comment.