From ba0b931801dbc02f911dcfac24bdfee22d1be71e Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 23 Sep 2022 00:11:47 +1200 Subject: [PATCH] fix: Avoid syntax error `!command` is a syntax error, so this check will always "pass". --- .pre-commit-entry.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-entry.sh b/.pre-commit-entry.sh index 4f72a41..190c2a2 100755 --- a/.pre-commit-entry.sh +++ b/.pre-commit-entry.sh @@ -7,7 +7,7 @@ if ! command -v nix-build; then exit 1 fi -if !command -v nix-instantiate; then +if ! command -v nix-instantiate; then echo 'ERROR: this pre-commit hook requires "nix-instantiate" to be installed first' exit 1 fi