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

Update shell scripts #686

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

wiryhatbox
Copy link

  • Safer scripts with set -euf and other options whenever possible

  • Make scripts more portable

  • Quote variables

  • Use end-of-options (--) to make scripts safer

  • Use either curl or wget with safer parameters

  • All commands (even mkdir/cd) exit properly on failure

  • Rethink eval arguments

Use `set -euf` to make script safer

Commands exit properly on failure

Quote variables
Commands exit properly on failure

Quote variables
Make script portable

Commands exit properly on failure

Quote variables

Rethink eval arguments
Use `set -euf` to make script safer

Commands exit properly on failure

Quote variables
Commands exit properly on failure

Quote variables

Reorganize
Commands exit properly on failure

Quote variables

Use either curl or wget
@wiryhatbox
Copy link
Author

Let me know if you need help with the review, functionality remained unchanged.

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.

1 participant