diff --git a/pi-ssh/src/remote-search.ts b/pi-ssh/src/remote-search.ts index 45d4097..16dfae6 100644 --- a/pi-ssh/src/remote-search.ts +++ b/pi-ssh/src/remote-search.ts @@ -159,7 +159,7 @@ function grepPipeline(input: RemoteGrepInput, root: string, limit: number): stri `PI_SSH_INCLUDE_HIDDEN=${includeHidden}`, `if command -v rg >/dev/null 2>&1; then`, ` printf '${MARKER}ripgrep\\n'`, - ` rg --null --line-number --no-heading --color never --with-filename --max-columns ${MAX_LINE_CHARS} --max-columns-preview ${rgMode} ${insensitive} ${rgHidden} ${rgGlob} --glob '!.git/**' --glob '!node_modules/**' -- ${shellQuote(pattern)} ${shellQuote(root)} | pi_ssh_limit_colon_records`, + ` rg --null --line-number --no-heading --color never --with-filename --max-columns ${MAX_LINE_CHARS} --max-columns-preview ${rgMode} ${insensitive} ${rgGlob} ${rgHidden} --glob '!.git/**' --glob '!node_modules/**' -- ${shellQuote(pattern)} ${shellQuote(root)} | pi_ssh_limit_colon_records`, ' statuses=("${PIPESTATUS[@]}")', ' pi_ssh_accept_status "${statuses[0]}" 0 1 141 || exit $?', ' pi_ssh_accept_status "${statuses[1]}" 0 || exit $?',