Skip to content

Commit 20883c9

Browse files
authored
fix(ggshield-not-ci): correct logic and print when skipping (#4)
1 parent 4d00b7d commit 20883c9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hooks/ggshield-not-ci.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33

4-
if [[ ! -z "${CI}"} ]]; then
4+
if [[ -z "${CI}" ]]; then
55
ggshield secret scan pre-commit
6+
else
7+
echo "In a CI environment, so skipping GitGuardian ggshield"
68
fi

0 commit comments

Comments
 (0)