mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
fix pruneCmd to use optionals so multi-element list is preserved
This commit is contained in:
parent
4fa2d4b5c3
commit
5ad71cfe84
@ -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…
Reference in New Issue
Block a user