From 20883c95e877437f79b199bb00c05a747430b42e Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Thu, 25 Aug 2022 18:00:42 +0100 Subject: [PATCH] fix(ggshield-not-ci): correct logic and print when skipping (#4) --- hooks/ggshield-not-ci.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/ggshield-not-ci.sh b/hooks/ggshield-not-ci.sh index cafb800..a84025f 100755 --- a/hooks/ggshield-not-ci.sh +++ b/hooks/ggshield-not-ci.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash set -eo pipefail -if [[ ! -z "${CI}"} ]]; then +if [[ -z "${CI}" ]]; then ggshield secret scan pre-commit +else + echo "In a CI environment, so skipping GitGuardian ggshield" fi