shell: fix formatted files not commited
This commit is contained in:
parent
a808eda724
commit
7b404f587d
|
@ -76,7 +76,8 @@ pkgs.devshell.mkShell {
|
|||
all_files=($($diff))
|
||||
|
||||
# Format staged nix files.
|
||||
${nixpkgs-fmt}/bin/nixpkgs-fmt "${"\${nix_files[@]}"}"
|
||||
${nixpkgs-fmt}/bin/nixpkgs-fmt "${"\${nix_files[@]}"}" \
|
||||
&& git add "${"\${nix_files[@]}"}"
|
||||
|
||||
# check editorconfig
|
||||
${editorconfig-checker}/bin/editorconfig-checker -- "${"\${all_files[@]}"}"
|
||||
|
|
Loading…
Reference in a new issue