fix pruneCmd to use optionals so multi-element list is preserved

wip/yesman
Matt McHenry 4 years ago committed by Jörg Thalheim
parent 4fa2d4b5c3
commit 5ad71cfe84
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
  1. 2
      nixos/modules/services/backup/restic.nix

@ -166,7 +166,7 @@ in
backupPaths = if (backup.dynamicFilesFrom == null)
then concatStringsSep " " backup.paths
else "--files-from ${filesFromTmpFile}";
pruneCmd = optional (builtins.length backup.pruneOpts > 0) [
pruneCmd = optionals (builtins.length backup.pruneOpts > 0) [
( resticCmd + " forget --prune " + (concatStringsSep " " backup.pruneOpts) )
( resticCmd + " check" )
];

Loading…
Cancel
Save