getPatchStatus = (binary) => {
    const afterEffects = path.dirname(binary)
    const targetScript = 'commandLineRenderer.jsx'
    const originalFile = path.join(afterEffects, 'Scripts', 'Startup', targetScript)
    const data = fs.readFileSync(originalFile, 'utf8')

    if (data.indexOf('nexrender-patch') === -1) {
        return PATCH_STATUS.NOT_PATCHED
    }

    const patchedMatch = data.match(/nexrender-patch-v([0-9.]+)/)
    const existingMatch = getContentForPatch(binary).match(/nexrender-patch-v([0-9.]+)/)

    if (patchedMatch[1] !== existingMatch[1]) {
        return PATCH_STATUS.OUTDATED
    }

    return PATCH_STATUS.PATCHED
}
Get the status of the patch for the After Effects command line renderer
@param {string} binary
@returns {number} PATCH_STATUS