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