From 191d9d6a316603756376785e9020005f06cc6514 Mon Sep 17 00:00:00 2001 From: Nicolas Erni Date: Tue, 21 May 2024 16:32:43 +0200 Subject: [PATCH] Fixed check for manual stage --- modules/pre-commit.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pre-commit.nix b/modules/pre-commit.nix index 0234084c..d340a487 100644 --- a/modules/pre-commit.nix +++ b/modules/pre-commit.nix @@ -67,7 +67,7 @@ let git config --global user.email "you@example.com" git config --global user.name "Your Name" git commit -m "init" -q - if [[ ${toString (compare install_stages [ "manual" ])} -eq 0 ]] + if [[ ${toString (compare install_stages [ "manual" ])} -eq 1 ]] then echo "Running: $ pre-commit run --hook-stage manual --all-files" ${cfg.package}/bin/pre-commit run --hook-stage manual --all-files