Navigation Menu

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 Composer version check #400

Merged
merged 1 commit into from Sep 19, 2014

Conversation

thewebists
Copy link
Contributor

I've seen this for a few versions of VVV that in both Ubuntu 12.04 and 14.04 the below line of code would always evaluate to false, and as such, always install Composer instead of checking for an update:

if [[ -n "$(composer --version | grep -q 'Composer version')" ]]; then

I propose using the following, which seems to evaluate more consistently:

if [[ -n "$(composer --version --no-ansi | grep 'Composer version')" ]]; then

I've seen this for a few versions of VVV that in both Ubuntu 12.04 and 14.04 the below line of code would always evaluate to false, and as such, always install Composer instead of checking for an update:
```bash
if [[ -n "$(composer --version | grep -q 'Composer version')" ]]; then
```

I propose using the following, which seems to evaluate more consistently:
```bash
if [[ -n "$(composer --version --no-ansi | grep 'Composer version')" ]]; then
```
@jeremyfelt jeremyfelt added this to the 1.2 Release milestone Sep 19, 2014
@jeremyfelt
Copy link
Member

Hi @thewebists, thanks for the pull request! I just had a chance to test this out and it does fix the installing vs updating check in repeat provisions.

We're in a transition toward applying the MIT License to the project. (see #346) Can you confirm that you're ok licensing your contribution as MIT? We're good to merge after that. Thanks!

@thewebists
Copy link
Contributor Author

MIT license is fine. Good choice.

jeremyfelt added a commit that referenced this pull request Sep 19, 2014
@jeremyfelt jeremyfelt merged commit df3dd2a into Varying-Vagrant-Vagrants:master Sep 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants