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

Checked and fixed possible quoting problems using shellcheck. #58

Merged
merged 1 commit into from
May 5, 2016

Conversation

ypid
Copy link
Member

@ypid ypid commented May 5, 2016

There are still a number of open warnings reported by shellcheck but
they are not as easy to fix as quoting.

This PR is not really tested and I am not 100 % sure that I did not
introduce bugs by this rework. Unfortunately I did not find a tool to do
this quite monoton task for me.

Related to
#57 (comment)

@drybjed Looking throught the scripts it seems that there was a but much copy paste involved. I guess we should refactor that?

There are still a number of open warnings reported by shellcheck but
they are not as easy to fix as quoting.

This PR is not really tested and I am not 100 % sure that I did not
introduce bugs by this rework. Unfortunately I did not find a tool to do
this quite monoton task for me.

Related to
debops#57 (comment)
@drybjed
Copy link
Member

drybjed commented May 5, 2016

All those modifications have been made by shellcheck, I presume?

Yeah, moving repetitive code into separate functions might be needed, although I would release a working version first. And perhaps that could be combined with variable rename.

@ypid
Copy link
Member Author

ypid commented May 5, 2016

All those modifications have been made by shellcheck, I presume?

Sadly not. As said I could not find a tool to do that task. I did it manually …

Yeah, moving repetitive code into separate functions might be needed, although I would release a working version first. And perhaps that could be combined with variable rename.

Sure. That would be a bigger refactoring to do with the potential of breaking things.

@drybjed drybjed merged commit f3af42c into debops:master May 5, 2016
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