We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7592596 + accd927 commit 790751fCopy full SHA for 790751f
1 file changed
programs/json-sort-cli.nix
@@ -93,15 +93,15 @@ in
93
(
94
''
95
for f in "$@"; do
96
- ${lib.getExe cfg.package} $file \
+ ${lib.getExe cfg.package} $f \
97
--autofix ${if cfg.autofix == true then "true" else "false"} \
98
--insert-final-newline ${if cfg.insert-final-newline == true then "true" else "false"} \
99
100
- + (lib.optionalString (cfg.end-of-line != null) cfg.end-of-line)
+ + (lib.optionalString (cfg.end-of-line != null) "--end-of-line ${cfg.end-of-line}")
101
+ ''
102
\
103
--indent-style ${cfg.indent-style} \
104
- --indent-size ${builtins.toString cfg.indent-size} || true
+ --indent-size ${toString cfg.indent-size} || true
105
done
106
107
)
0 commit comments