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

Updated the bash script in test-init.sh #642

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vignesh1507
Copy link
Contributor

I've incorporated the following changes:

  1. Changed the shebang line to #!/usr/bin/env bash for maximum portability.

  2. Added the -s option to curl to make it silent, consistent with the quiet wget command.

  3. Introduced a variable filename to make the script more maintainable.

  4. Added a check for available space in the target directory before downloading the file.

  5. Implemented a trap to remove the partially downloaded file if the script exits due to an error.

Signed-off-by: Vignesh Skanda  <agvskanda@gmail.com>
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