Skip to content

Commit 43b3c1a

Browse files
authored
Merge pull request #727 from bmrips/package-pname
fix: replace 'pre-commit' by `cfg.package.pname`
2 parents bca82ca + 9281661 commit 43b3c1a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/pre-commit.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ let
103103
git commit -m "init" -q
104104
if [[ ${toString (compare cfg.installStages [ "manual" ])} -eq 0 ]]
105105
then
106-
echo "Running: $ pre-commit run --hook-stage manual --all-files"
106+
echo "Running: $ ${cfg.package.pname} run --hook-stage manual --all-files"
107107
${lib.getExe cfg.package} run -c ${cfg.configPath} --hook-stage manual --all-files
108108
else
109-
echo "Running: $ pre-commit run --all-files"
110-
${lib.getExe cfg.package} run -c ${cfg.configPath} --all-files
109+
echo "Running: $ ${cfg.package.pname} run --all-files"
110+
${lib.getExe cfg.package} run -c ${cfg.configPath} --all-files
111111
fi
112112
exitcode=$?
113113
git --no-pager diff --color

0 commit comments

Comments
 (0)