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