Skip to content

Commit 7415b08

Browse files
committed
Test
1 parent 9b8d458 commit 7415b08

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/integration.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ jobs:
3232
# 제어문자 체크
3333
echo -e "\n## 제어문자가 포함된 파일명" >> $GITHUB_STEP_SUMMARY
3434
for file in $files; do
35-
# 여러 방법으로 제어문자 검사
36-
if echo -n "$file" | LC_ALL=C grep -q '[^[:print:][:space:]]' || \
37-
[[ "$file" =~ $'\b' ]] || \
38-
[[ "$file" != "$(echo -n "$file" | tr -d '[:cntrl:]')" ]]; then
35+
# basename으로 파일명만 추출
36+
filename=$(basename "$file")
37+
38+
if echo -n "$filename" | LC_ALL=C grep -q '[^[:print:][:space:]]' || \
39+
[[ "$filename" =~ $'\b' ]]; then
3940
echo "발견된 제어문자: $file"
4041
echo "- $file" >> $GITHUB_STEP_SUMMARY
41-
# 파일명 분석을 위한 디버그 정보
42-
echo " Hex dump:" >> $GITHUB_STEP_SUMMARY
43-
echo -n "$file" | xxd >> $GITHUB_STEP_SUMMARY
42+
echo " 파일명: $filename" >> $GITHUB_STEP_SUMMARY
4443
success=false
4544
fi
4645
done

0 commit comments

Comments
 (0)