useful commands handling Magento patches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The patch contains binary data which makes most editors corrupt the file when saving | |
# use sed to remove lines - for example if you have deleted the downloader folder | |
sed -i '6573,6686 d' PATCH_SUPEE-8788_CE_1.7.0.2_v1-2016-10-11-06-36-18.sh | |
# Find the line numbers for removing | |
# First mentioned number until the second to last | |
sed -n '/diff --git downloader/,/diff --git/{=;p;}' PATCH_SUPEE-8788_CE_1.7.0.2_v1-2016-10-11-06-36-18.sh | |
# Check for frontend template changes | |
cat PATCH_SUPEE-8788_FILENAME.sh |grep 'diff --git app/design/frontend/base/default' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
on unix based systems like macOS the commands needs to be slightly different:
sed -ie '163,7736 d' PATCH_SUPEE-8788_CE_1.7.0.2_v1-2016-10-11-06-36-18.sh