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

This commit is contained in:
Baptiste Augrain 2022-08-16 23:10:04 +02:00 committed by GitHub
parent 98bac0c1eb
commit bfdaf23c6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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