Skip to content

Commit

Permalink
Merge pull request #491 from cachix/fix-alejandra-escape
Browse files Browse the repository at this point in the history
alejandra: fix shell escape for file excludes
  • Loading branch information
domenkozar authored Aug 28, 2024
2 parents 1cd12de + 90999f9 commit e4b2580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ in
cmdArgs =
mkCmdArgs (with hooks.alejandra.settings; [
[ check "--check" ]
[ (exclude != [ ]) "${lib.escapeShellArgs (map (file: "--exclude '${file}'") (lib.unique exclude))}" ]
[ (exclude != [ ]) "--exclude ${lib.strings.concatStringsSep " --exclude " (map lib.escapeShellArg (lib.unique exclude))}" ]
[ (verbosity == "quiet") "-q" ]
[ (verbosity == "silent") "-qq" ]
[ (threads != null) "--threads ${toString threads}" ]
Expand Down

0 comments on commit e4b2580

Please sign in to comment.