Skip to content

Instantly share code, notes, and snippets.

@brunsgaard
Created September 14, 2015 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunsgaard/aff93ad794ba473c6259 to your computer and use it in GitHub Desktop.
Save brunsgaard/aff93ad794ba473c6259 to your computer and use it in GitHub Desktop.
#!/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