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

Tidy up setting variable handling #135

Merged
merged 1 commit into from
May 16, 2016
Merged

Conversation

mnagy
Copy link
Contributor

@mnagy mnagy commented May 5, 2016

  • Get rid of calling python for calculations,
    • don't export variables while sourcing common.sh, do it by explicitly
      calling a function.

@php-coder PTAL

export MYSQL_SORT_BUFFER_SIZE=${MYSQL_SORT_BUFFER_SIZE:-256K}

# Export memory limit variables and calculate limits
export_vars=$(cgroup-limits) && export $export_vars || exit 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add local to export_vars?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, why not :)

@php-coder
Copy link
Contributor

Thank you for this PR, I have these changes in my own TODO-list and now I can remove them :)

 * Get rid of calling python for calculations,
 * don't export variables while sourcing common.sh, do it by explicitly
   calling a function.
@mnagy
Copy link
Contributor Author

mnagy commented May 16, 2016

@php-coder addressed comments and also added a tiny change that shellcheck was complaining about (while [ true ]; -> while true;)

@php-coder
Copy link
Contributor

LGTM.

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