Simple shell script to detect any overwritten patched files in local/community code pool and in custom themes
curl https://raw.githubusercontent.com/stuntcoders/stunt_mage_patch_rewrite_validator/master/mage-patch-check.sh > /usr/local/bin/mage-patch-check
chmod +x /usr/local/bin/mage-patch-check
Navigate to magento proeject, apply patch and run:
$ mage-patch-check