Ver código fonte

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

Baptiste Augrain 2 anos atrás
pai
commit
bfdaf23c6d
2 arquivos alterados com 1 adições e 2 exclusões
  1. 0 1
      docs/build.md
  2. 1 1
      undo_telemetry.sh

+ 0 - 1
docs/build.md

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

+ 1 - 1
undo_telemetry.sh

@@ -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