mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Don't error if grep matches nothing
This commit is contained in:
parent
bcaec4e6d1
commit
5f45725d81
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ async function searchFileContents(
|
|||
clearTimeout(commandTimeout);
|
||||
}
|
||||
|
||||
if (code !== 0) {
|
||||
if (code > 1) {
|
||||
if (stderr) {
|
||||
throw new Error(new TextDecoder().decode(stderr));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue