From 4c393e3ec49649a33d0d819aaba55a2840762130 Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Fri, 20 Sep 2024 09:47:42 -0700 Subject: [PATCH] Fix pre-commit script This fix makes pre-commit not to run checks behind environment variable flag if it is not set --- .pre-commit.stash4zjacb | 0 pre-commit | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .pre-commit.stash4zjacb diff --git a/.pre-commit.stash4zjacb b/.pre-commit.stash4zjacb new file mode 100644 index 000000000..e69de29bb diff --git a/pre-commit b/pre-commit index 3edbe2781..babada0ef 100755 --- a/pre-commit +++ b/pre-commit @@ -88,7 +88,7 @@ check "Clippy checks" \ check "Tests" \ cargo test --features="cli test-fixture" -if [ -z "$EXEC_SLOW_TESTS" ] +if [ -n "$EXEC_SLOW_TESTS" ] then check "Benchmark compilation" \