build(linux): use vscode's ripgrep (#1205)

This commit is contained in:
Baptiste Augrain
2022-08-16 23:10:04 +02:00
committed by GitHub
parent 98bac0c1eb
commit bfdaf23c6d
2 changed files with 1 additions and 2 deletions

View File

@@ -35,7 +35,6 @@
- dpkg
- python3
- imagemagick (for AppImage)
- ripgrep
### <a id="dependencies-macos"></a>MacOS

View File

@@ -29,7 +29,7 @@ d1=`date +%s`
if [[ "${OS_NAME}" == "linux" ]]; then
if [[ ${VSCODE_ARCH} == "x64" ]]; then
rg --no-ignore -l "${SEARCH}" . | xargs -I {} bash -c 'replace_with_debug "${1}" "{}"' _ "${REPLACEMENT}"
./node_modules/@vscode/ripgrep/bin/rg --no-ignore -l "${SEARCH}" . | xargs -I {} bash -c 'replace_with_debug "${1}" "{}"' _ "${REPLACEMENT}"
else
grep -rl --exclude-dir=.git -E "${SEARCH}" . | xargs -I {} bash -c 'replace_with_debug "${1}" "{}"' _ "${REPLACEMENT}"
fi