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

Refactor script based on ShellCheck suggestion #465

Closed
wants to merge 8 commits into from

Conversation

PeterDaveHello
Copy link
Contributor

@PeterDaveHello PeterDaveHello commented Oct 23, 2017

Refactor the n script, based on my Shell Script experience and ShellCheck suggestion.

@shadowspawn
Copy link
Collaborator

I initially thought this might be a wild style change request, but when I looked into ShellCheck I was impressed by the depth and accuracy of the advice. Thanks @PeterDaveHello.

I am willing to do a formal review of the PR if helpful to maintainers.

@PeterDaveHello
Copy link
Contributor Author

Any chance to move forward here, it started to have conflicts here, I'd like to resolve it if we can do something here ;) Thanks.

@shadowspawn
Copy link
Collaborator

I have recently been added as a maintainer. I am interested in making these changes, but do not want to take it as a Pull Request (sorry). I would like to work through the changes suggested by ShellCheck myself so I can check each change and do it incrementally. (I have done this once already on my own fork of n, inspired by this Pull Request.)

I don't want you to miss out on getting credited as a contributor though, if that matters to you. You could submit a new Pull Request with a single or small change, and could say in the commit message it is a small example of wider changes recommended?

@PeterDaveHello
Copy link
Contributor Author

@shadowspawn changes are separated now, should be good enough?

@shadowspawn
Copy link
Collaborator

I have cherry-picked all but one of the commits into develop branch for next release.

(I left out "Declare and assign separately to avoid masking return values" as not currently testing the return values.)

@PeterDaveHello
Copy link
Contributor Author

Thanks!

@shadowspawn
Copy link
Collaborator

shadowspawn commented May 4, 2019

Shipped in v4.0.0

Thank you for your contributions.

@shadowspawn shadowspawn closed this May 4, 2019
@PeterDaveHello PeterDaveHello deleted the ShellCheck branch May 5, 2019 05:52
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