Skip to content

Commit 90999f9

Browse files
committed
alejandra: fix shell escape for file excludes
1 parent 1cd12de commit 90999f9

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)