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

Cannot change version if user group contains two words #33

Open
dskarataev opened this issue Oct 9, 2017 · 0 comments
Open

Cannot change version if user group contains two words #33

dskarataev opened this issue Oct 9, 2017 · 0 comments

Comments

@dskarataev
Copy link

dskarataev commented Oct 9, 2017

When I run gobrew use 1.8 it shows that the version is not installed.

I investigated why and I see this line in libexec/gobrew-use file:

VERSIONS=ls -l $GOBREW_ROOT/versions | egrep '^d' | awk '{print $9}'

and the problem is in awk command because if my user group contains two words and space in between (my user in an Active Directory user) then the version name is on 10th position.

I just fixed it to awk '{print $10}' and it works perfect for me, but maybe you could find some general solution for that case.

Thanks :)

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

No branches or pull requests

1 participant