markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.54k stars 997 forks source link

Moved check for empty directory to top of scripts #1143

Closed YevhenZvieriev closed 5 months ago

YevhenZvieriev commented 5 months ago

In this pull request, a check has been moved to the top of the scripts to verify the existence of the bin and src directories BEFORE taking any actions. This was done to ensure that the directory is empty BEFORE beginning the process, and prevents unintentional overwriting of content, as well as any errors that might occur during execution.

what-the-diff[bot] commented 5 months ago

PR Summary

markshust commented 5 months ago

Thanks, this definitely makes sense 👍