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

Fixes "yarn run" #562

Merged
merged 1 commit into from Aug 15, 2019
Merged

Fixes "yarn run" #562

merged 1 commit into from Aug 15, 2019

Conversation

arcanis
Copy link
Contributor

@arcanis arcanis commented Aug 14, 2019

There's a problem in the 4.0.0-0 where the parameters sent to Yarn are as such:

yarn "" husky-run pre-commit

This empty second argument is caused by explicitly passing $1 $2 as parameter (Yarn doesn't need a second argument, so Bash is replacing it with an empty string).

This diff fixes that by using "$@" instead, which expands to the list of arguments passed to the function (so "npx" "--no-install" for npx, and simply "yarn" for Yarn).

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.

None yet

2 participants