Skip to content

Commit 790751f

Browse files
authored
Merge pull request #495 from drupol/push-zxxruvzrxqum
json-sort-cli: fix command options
2 parents 7592596 + accd927 commit 790751f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

programs/json-sort-cli.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ in
9393
(
9494
''
9595
for f in "$@"; do
96-
${lib.getExe cfg.package} $file \
96+
${lib.getExe cfg.package} $f \
9797
--autofix ${if cfg.autofix == true then "true" else "false"} \
9898
--insert-final-newline ${if cfg.insert-final-newline == true then "true" else "false"} \
9999
''
100-
+ (lib.optionalString (cfg.end-of-line != null) cfg.end-of-line)
100+
+ (lib.optionalString (cfg.end-of-line != null) "--end-of-line ${cfg.end-of-line}")
101101
+ ''
102102
\
103103
--indent-style ${cfg.indent-style} \
104-
--indent-size ${builtins.toString cfg.indent-size} || true
104+
--indent-size ${toString cfg.indent-size} || true
105105
done
106106
''
107107
)

0 commit comments

Comments
 (0)