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

fix: wrap install.sh in a main function #217

Merged
merged 1 commit into from
Apr 21, 2024
Merged

Conversation

XavierChanth
Copy link
Contributor

Wrapped install.sh in a main function, then at the end of the script call main passing down all script arguments to the main function (if any become required in the future).

Reason for this change is that you recommend piping curl output directly into bash in the instructions, this change prevents install.sh from executing anything unless the whole file is downloaded successfully.

@XavierChanth
Copy link
Contributor Author

(Tip, disable whitespace in the differ, it makes it much easier to view the changes)

Copy link
Member

@aooohan aooohan left a comment

Choose a reason for hiding this comment

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

LGTM.

I think you are right, thanks!

@aooohan aooohan merged commit 555c03d into version-fox:main Apr 21, 2024
@aooohan
Copy link
Member

aooohan commented Apr 21, 2024

Thanks for the first contribution! ;)

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.

None yet

2 participants