fix(restic): switch to fd to include empty paths

This commit is contained in:
Felix Schröter 2022-05-15 19:37:53 +02:00
parent d979a126ab
commit de264cde5a
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 4 additions and 2 deletions

View file

@ -32,10 +32,10 @@ in {
ignoreFile = builtins.toFile "ignore"
(foldl (a: b: a + "\n" + b) "" ignorePatterns);
in ''
${pkgs.ripgrep}/bin/rg \
${pkgs.fd}/bin/fd \
--hidden \
--files ${files} \
--ignore-file ${ignoreFile} \
. ${files} \
| sed "s/\[/\\\[/" | sed "s/\]/\\\]/"
''
else