Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let
inherit (lib)
boolToString
concatStringsSep
compare
elem
filterAttrs
literalExample
mapAttrsToList
Expand Down Expand Up @@ -101,7 +101,7 @@ let
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
git commit -m "init" -q
if [[ ${toString (compare cfg.installStages [ "manual" ])} -eq 0 ]]
if [[ '${toString (elem "manual" cfg.installStages)}' -eq '1' ]]
then
echo "Running: $ pre-commit run --hook-stage manual --all-files"
pre-commit run -c ${cfg.configPath} --hook-stage manual --all-files
Expand Down