Skip to content

Commit 59cc725

Browse files
norbertwnuksandydoo
andcommitted
typos: escape exclude options
Fixes #618. Co-authored-by: Sander <hey@sandydoo.me>
1 parent 9306d88 commit 59cc725

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
@@ -4149,7 +4149,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
41494149
inherit (hooks.typos.settings) config exclude;
41504150
configFile = toml.generate "typos-config.toml" config;
41514151
excludeFlags = lib.concatStringsSep " "
4152-
(lib.map (glob: "--exclude ${glob}") exclude);
4152+
(lib.map (glob: "--exclude '${glob}'") exclude);
41534153
cmdArgs =
41544154
mkCmdArgs
41554155
(with hooks.typos.settings; [

0 commit comments

Comments
 (0)