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

README > Installation : "--parent" argument of mkdir does not exist on macOS #6684

Closed
MTindev opened this issue Nov 17, 2022 · 2 comments · Fixed by #6689
Closed

README > Installation : "--parent" argument of mkdir does not exist on macOS #6684

MTindev opened this issue Nov 17, 2022 · 2 comments · Fixed by #6689

Comments

@MTindev
Copy link
Contributor

MTindev commented Nov 17, 2022

Bug report

Hello,

In the README file, in the section Documentation > Installation, it is expected that the given commands make it easy to perform the installation.

However, in macOS, the --parent argument does not exist for the mkdir command. Only the -p argument exists.

Code snippet that reproduces the problem

$ mkdir --parents tools/php-cs-fixer

# returns :
mkdir: illegal option -- -
usage: mkdir [-pv] [-m mode] directory_name ...

What is expected ?

To facilitate the process on all platforms (and avoid an error on macOS), I suggest :

mkdir -p tools/php-cs-fixer
@julienfalque
Copy link
Member

👍

Do you mind creating a PR with this change?

@MTindev
Copy link
Contributor Author

MTindev commented Nov 20, 2022

Hi @julienfalque,

I am OK and have created the pull request: #6689
Hopefully it will meet your expectations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants