fix(ci): use POSIX-compatible syntax in pre-commit hook
Some checks failed
Release / Release (push) Failing after 6m48s
Release / Build & Push Docker Image (push) Has been skipped

This commit is contained in:
Tuan-Dat Tran
2026-02-23 19:48:11 +01:00
parent cd22a970cb
commit c240aa3641

View File

@@ -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 ""