From c63420f0e7b30669f730cbbe848ac5f0e3470b04 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Thu, 27 Jan 2022 22:51:27 +0100 Subject: [PATCH] nix: Fix postgrest-git-hooks disable not working Signed-off-by: Wolfgang Walther --- nix/tools/devTools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/tools/devTools.nix b/nix/tools/devTools.nix index 808bebeae..491f00cac 100644 --- a/nix/tools/devTools.nix +++ b/nix/tools/devTools.nix @@ -138,7 +138,7 @@ let # to the hook file. sed -i -e '/postgrest-git-hooks/d' .git/hooks/pre-{commit,push} 2> /dev/null || true - if [ disabled != "$_arg_mode" ]; then + if [ disable != "$_arg_operation" ]; then # The nix-shell && + nix-shell || pattern makes sure we can run the hook # in a pure nix-shell, where nix-shell itself is not available, too.