shell: fix formatted files not commited

This commit is contained in:
Timothy DeHerrera 2021-02-03 21:24:53 -07:00
parent a808eda724
commit 7b404f587d
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -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[@]}"}"