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

Make genrpm.sh a little safer. #895

Merged
merged 1 commit into from
Oct 21, 2016
Merged

Make genrpm.sh a little safer. #895

merged 1 commit into from
Oct 21, 2016

Conversation

vfreex
Copy link

@vfreex vfreex commented Oct 20, 2016

  1. Remove function get_att_val:
    That function uses eval to set default values for bash variables.
    Because it is very dangerous to use eval (someone call it the plague of shell scripting), I'd like to use the bash builtin to do that.
  2. Double quote all variables to avoid unexpected expansion when using it.

BTW, the default version of git on EL6 is too old to support archive in .tar.gz command. Maybe we can change the default format to tar?

1. Remove function `get_att_val`:
That function uses `eval` to set default values for bash variables.
Because it is very dangerous to use `eval` (someone call it the plague of shell scripting), I'd like to use the bash builtin to do that.
2. Double quote all variables to avoid unexpected expansion when using it.
@madeye madeye merged commit 69a0867 into shadowsocks:master Oct 21, 2016
@debiansid
Copy link

yeah, EL6 can not use genrpm.sh

@madeye
Copy link

madeye commented Oct 21, 2016

Yes, you can submit another pull request to fix the tar.gz issue.

@vfreex vfreex deleted the fix-genrpm branch November 14, 2016 13:37
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.

3 participants