[ops] Fix mempool-build-all script exit code

This commit is contained in:
wiz 2022-06-08 03:06:54 +09:00
parent ec80eac6b9
commit fcb0c51e51
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -16,7 +16,8 @@ if [ -f "${LOCKFILE}" ];then
exit 1
fi
trap 'rm -f "${LOCKFILE}"; exit $?' INT TERM EXIT
trap "rv=\$?; rm -rf "${LOCKFILE}"; exit \$rv" INT TERM EXIT
touch "${LOCKFILE}"
echo "Upgrading mempool to ${REF}" | wall