Skip to content

Instantly share code, notes, and snippets.

@aleron75
Last active August 29, 2015 14:26
Show Gist options
  • Save aleron75/f4ed6aa195228d2fd370 to your computer and use it in GitHub Desktop.
Save aleron75/f4ed6aa195228d2fd370 to your computer and use it in GitHub Desktop.
Checks whether Magento core files were changed against a vanilla installation
#!/bin/bash
# Requirements: patchutils - Utilities to work with patches
# Credits: http://inchoo.net/magento/quickly-check-if-magento-core-files-are-modified/
if [ $# -ne 2 ]; then
echo "Usage:"
echo "heydidyoujusteditthecore.sh <default_sacred_core_folder> <clients_core_folder>"
exit 1
fi
default_sacred_core_folder="$1"
clients_core_folder="$2"
diff -urbB $default_sacred_core_folder $clients_core_folder | lsdiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment