Created
April 2, 2021 04:11
-
-
Save cdecl/d73869482d578603f2c2387852c992a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# [ITSERVICE-44375] | |
# 작업 내용 : 캠핑 이용일별예약자내역 캠핑 좌석번호 미노출 오류 수정 작업 건 관련 sp : 없음 | |
echo "=============================================================" | |
grep -E '\[[A-Za-z0-9]{2,}-[0-9]{2,}\]' $1 > /dev/null | |
if [ "$?" -eq 0 ]; then | |
echo "[COMMIT SUCCESS]" | |
sed -rn 's/.*(\[[A-Za-z0-9]{2,}-[0-9]{2,}\]).*/PMS INFO: \1/p' $1 | |
echo "=============================================================" | |
else | |
echo "[COMMIT FAILED]" | |
cat $1 | |
echo "=============================================================" | |
exit 1 | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment