mirror of
https://github.com/status-im/status-react.git
synced 2025-01-22 08:49:22 +00:00
comment out go hook
This commit is contained in:
parent
b0cc30d606
commit
c69b640810
@ -14,8 +14,9 @@ GITHUB_LINK="${GITHUB_LINK_PREFIX}${GO_COMMIT_MERGE_BASE}...${GO_COMMIT_CURRENT}
|
||||
|
||||
COMMIT_MSG_FILE=$1
|
||||
# Check if the commit message already contains the link (rebase) and update otherwise insert into line2
|
||||
if ! grep -qF "${GITHUB_LINK_PREFIX}" "${COMMIT_MSG_FILE}" >/dev/null; then
|
||||
sed -in "2i${GITHUB_LINK}\n" "${COMMIT_MSG_FILE}"
|
||||
else
|
||||
sed -in "s;^${GITHUB_LINK_PREFIX}.*$;${GITHUB_LINK};" "${COMMIT_MSG_FILE}"
|
||||
fi
|
||||
# temporary comment out because of the error on macos
|
||||
#if ! grep -qF "${GITHUB_LINK_PREFIX}" "${COMMIT_MSG_FILE}" >/dev/null; then
|
||||
# sed -in "2i${GITHUB_LINK}\n" "${COMMIT_MSG_FILE}"
|
||||
#else
|
||||
# sed -in "s;^${GITHUB_LINK_PREFIX}.*$;${GITHUB_LINK};" "${COMMIT_MSG_FILE}"
|
||||
#fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user