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

Optimizes the helpers.sh script #8

Merged

Conversation

AndresCdo
Copy link
Contributor

Changes:

  • Use -f flag with rm command to avoid the need for redirection to /dev/null.
  • Combine all rm commands into a single line to improve performance.
  • Use "$@" instead of $1 to allow the script to accept multiple arguments.
  • Use printf instead of echo for better cross-platform compatibility.
  • Use set -euo pipefail at the beginning of the script to catch more errors.
  • Use command -v to check for the presence of a command before running it.
  • Use xargs instead of ** to improve performance and avoid issues with certain filenames.

Optimizes the helpers script.
Uses case statement instead of if statement.
@BillSchumacher BillSchumacher merged commit abe3637 into Significant-Gravitas:master Apr 25, 2023
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