fix: commit-msg hook grep -P를 -E로 변경 (macOS 호환)
This commit is contained in:
부모
af8a014f6b
커밋
9f50a345b3
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#\!/bin/bash
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# commit-msg hook
|
# commit-msg hook
|
||||||
# Conventional Commits 형식 검증 (한/영 혼용 지원)
|
# Conventional Commits 형식 검증 (한/영 혼용 지원)
|
||||||
@ -26,7 +26,7 @@ PATTERN='^(feat|fix|docs|style|refactor|test|chore|ci|perf)(\([a-zA-Z0-9가-힣.
|
|||||||
|
|
||||||
FIRST_LINE=$(head -1 "$COMMIT_MSG_FILE")
|
FIRST_LINE=$(head -1 "$COMMIT_MSG_FILE")
|
||||||
|
|
||||||
if ! echo "$FIRST_LINE" | grep -qP "$PATTERN"; then
|
if \! echo "$FIRST_LINE" | grep -qE "$PATTERN"; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "╔══════════════════════════════════════════════════════════════╗"
|
echo "╔══════════════════════════════════════════════════════════════╗"
|
||||||
echo "║ 커밋 메시지가 Conventional Commits 형식에 맞지 않습니다 ║"
|
echo "║ 커밋 메시지가 Conventional Commits 형식에 맞지 않습니다 ║"
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user