Skip to content

Commit e4b2580

Browse files
authored
Merge pull request #491 from cachix/fix-alejandra-escape
alejandra: fix shell escape for file excludes
2 parents 1cd12de + 90999f9 commit e4b2580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hooks.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ in
17311731
cmdArgs =
17321732
mkCmdArgs (with hooks.alejandra.settings; [
17331733
[ check "--check" ]
1734-
[ (exclude != [ ]) "${lib.escapeShellArgs (map (file: "--exclude '${file}'") (lib.unique exclude))}" ]
1734+
[ (exclude != [ ]) "--exclude ${lib.strings.concatStringsSep " --exclude " (map lib.escapeShellArg (lib.unique exclude))}" ]
17351735
[ (verbosity == "quiet") "-q" ]
17361736
[ (verbosity == "silent") "-qq" ]
17371737
[ (threads != null) "--threads ${toString threads}" ]

0 commit comments

Comments
 (0)