Patch check script