Created
September 14, 2015 13:39
-
-
Save brunsgaard/aff93ad794ba473c6259 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
FILES=" | |
./app/code/local/Clerk/SearchAndRecommendations | |
./app/design/frontend/base/default/template/clerk | |
./app/design/frontend/base/default/layout/clerk.xml | |
./app/etc/modules/Clerk_SearchAndRecommendations.xml | |
./app/locale/da_DK/Clerk_SearchAndRecommendations.csv | |
./app/locale/en_US/Clerk_SearchAndRecommendations.csv | |
./skin/frontend/base/default/clerk/styles.css | |
" | |
echo -e "I will remove files/folders that were created by Clerk magento extension 1.2.2" | |
echo -e "and earlier.\n" | |
echo -e "These files are ONLY used by the Clerk module and removing them will not" | |
echo -e "affect the rest of the installation." | |
echo -e "The files/folders I want to remove are the following.\n" | |
for f in $FILES | |
do | |
echo " $f" | |
done | |
echo "" | |
read -r -p "Am I allowed to remove these files? [y/N] " response | |
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]] | |
then | |
for f in $FILES | |
do | |
rm -rf $f | |
done | |
echo -e "\nHurra, You are now ready to install Clerk for Magento" | |
echo -e "from Magento Connect or the .tgz package." | |
else | |
echo -e "\nFiles were not touched ;)\n" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment