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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user