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: Fix faulty empty array check in pre-commit #72

Merged
merged 1 commit into from
Jun 16, 2020
Merged

fix: Fix faulty empty array check in pre-commit #72

merged 1 commit into from
Jun 16, 2020

Conversation

rchildre3
Copy link
Contributor

Whoops, forgot to test if no changed shelll scripts in stage

* When no shell scripts were changed the empty array was checked using a
  defrefrence of an unset variable, causing an error. Use arithmetic an
  expression to test the count in the array.
* Remove trailing slash on `hooksPath` to prevent double slash in
  printing errors and keeping with git conventions
@scottyhardy scottyhardy merged commit 1fdca7c into scottyhardy:master Jun 16, 2020
@rchildre3 rchildre3 deleted the bugfix/pre-commit-empty-array branch June 17, 2020 03:09
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