Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code duplication #1141

Merged
merged 3 commits into from
Apr 26, 2024

Conversation

YevhenZvieriev
Copy link
Contributor

Hi @markshust ,

I see that you added to detect if the directory is not empty in the new project directory during installation in the lib/onelinesetup script in this PR #1140.

But on the 13 line onelinesetup script executes an HTTP request using curl

curl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash

And within lib/template from 7 to 10 lines it again checks if the directory is empty. It is duplication code, are you sure that we need to detect if the directory is empty within the lib/onelinesetup?

markshust and others added 3 commits April 25, 2024 12:18
Co-authored-by: Michael Lehmkuhl <[email protected]>
Co-authored-by: Jenyamba <[email protected]>
Co-authored-by: Tu Van <[email protected]>
Co-authored-by: Cid Lopes <[email protected]>
Copy link

what-the-diff bot commented Apr 25, 2024

PR Summary

  • Removal of Empty Directory Validation
    This PR eliminates the condition that required a directory to be empty in the "onelinesetup" file. This simplifies the process and reduces unnecessary restrictions on directories that can be used.

@markshust markshust merged commit 3f5c1b8 into markshust:release/next Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants