-
Notifications
You must be signed in to change notification settings - Fork 0
agent: support auto-installing dependencies #19
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
base: main
Are you sure you want to change the base?
Conversation
Fixes #7908
fitzn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few suggestions on the initial pass. I can take another look when this is ready for review.
|
|
||
| You can automatically install all missing dependencies by passing in the install flag | ||
| ``` | ||
| $ ./local/check-dependencies.sh install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should make this --install to make it more clear that this is a toggle/flag.
| $ ./local/install-dependency-3proxy.sh | ||
| ``` | ||
|
|
||
| You can automatically install all missing dependencies by passing in the install flag |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be --install too
|
|
||
| echo -ne "${Name}: " | ||
| if [ $Missing ]; then failed ; else passed ; fi | ||
| if [ $Missing ] && [ $AutoInstall ] && [ $AutoInstall == "install" ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the middle clause because all variables will be the empty string until defined. So, the second clause can be [ "$AutoInstall" == "--install" ]; then
| if [ $Missing ] && [ $AutoInstall ] && [ $AutoInstall == "install" ]; | ||
| then install $Name ; | ||
| elif [ $Missing ]; | ||
| then failed ; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our default syntax in other scripts is for the then to be on the preceding line after the semi-colon.
|
@khsheehan I removed the ticket reference since it was for the other repository. You can make a new issue in this repository if you want, but I don't think it's strictly necessary. |
No description provided.