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))
|
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 New Issue
Block a user