This commit is contained in:
Aaron Bieber 2023-02-03 11:18:53 -07:00
parent 465a155e4c
commit 7f34d99e9c
No known key found for this signature in database

View File

@ -19,11 +19,11 @@ msg() {
} }
unlock() { unlock() {
rm -f ${LOCK_FILE}; rm -f ${LOCK_FILE}
} }
_lock() { _lock() {
echo "${SCRIPT_PID}" > "${LOCK_FILE}" echo "${SCRIPT_PID}" >"${LOCK_FILE}"
trap 'unlock' INT EXIT TERM trap 'unlock' INT EXIT TERM
} }
@ -132,4 +132,3 @@ handle_merge_fail() {
handle_push_fail() { handle_push_fail() {
po_error "CI: git push failed!" "Pelase help!" po_error "CI: git push failed!" "Pelase help!"
} }