Skip to content

Conversation

@khsheehan
Copy link

@khsheehan khsheehan commented Aug 3, 2023

No description provided.

Copy link
Contributor

@fitzn fitzn left a 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
Copy link
Contributor

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
Copy link
Contributor

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" ];
Copy link
Contributor

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 ;
Copy link
Contributor

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.

@fitzn
Copy link
Contributor

fitzn commented Aug 3, 2023

@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.

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.

3 participants