From 5f45725d81b76d40ac35cffea90b84d34bcefebf Mon Sep 17 00:00:00 2001 From: Bruno Bernardino Date: Thu, 4 Apr 2024 18:17:05 +0100 Subject: [PATCH] Don't error if grep matches nothing --- lib/data/files.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/data/files.ts b/lib/data/files.ts index 1887b34..69a2d36 100644 --- a/lib/data/files.ts +++ b/lib/data/files.ts @@ -391,7 +391,7 @@ async function searchFileContents( clearTimeout(commandTimeout); } - if (code !== 0) { + if (code > 1) { if (stderr) { throw new Error(new TextDecoder().decode(stderr)); }