mirror of
https://github.com/divnix/digga.git
synced 2024-12-24 16:44:52 +03:00
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 New Issue
Block a user