fix(ci): use POSIX-compatible syntax in pre-commit hook
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
npm run lint
|
npm run lint
|
||||||
|
|
||||||
# Gitleaks secret scanning
|
# Gitleaks secret scanning
|
||||||
if command -v gitleaks &> /dev/null; then
|
if command -v gitleaks > /dev/null 2>&1; then
|
||||||
gitleaks protect --verbose --staged
|
gitleaks protect --verbose --staged
|
||||||
if [ $? -eq 1 ]; then
|
if [ $? -eq 1 ]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user