paliarush / magento2-vagrant-for-developers

Vagrant Box for Magento 2 Developers
MIT License
447 stars 165 forks source link

Deleting Magento Test Module only if "checkout_source_from: git" #233

Open medmek opened 3 years ago

medmek commented 3 years ago

Hello, I'm not entirely sure but I think that Deleting TestModule directories in m_reinstall.sh should only be done in case of git as checkout source In case of checkout_source_from: "composer" for example the magento2ce/app/code/Magento directory doesn't exist, because it's found in vendor directory. In this case I'm not sure it's useful to delete the TestModule directory anyway (?) Thanks

magento_app_code_dir="${vagrant_dir}/magento2ce/app/code/Magento"

mkdir -p "$magento_app_code_dir"

cd "${magento_app_code_dir}"

status "Deleting TestModule directories"
ls | grep "TestModule" | xargs rm -rf