Skip to content

fix version check in Cygwin #3331

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

Merged
merged 1 commit into from
Oct 23, 2017
Merged

Conversation

liufengyun
Copy link
Contributor

Fix version check in Cygwin

Note: I've tried following code as well, which doesn't work either on Cygwin:

JAVA_VERSION=$(echo $JAVA_VERSION | xargs)
# or
JAVA_VERSION=$(echo $JAVA_VERSION)

I've tried compare $JAVA_VERSION == "1.8 ", which is false as well. I guess Cygwin has inserted some invisible characters somewhere.

@allanrenucci
Copy link
Contributor

allanrenucci commented Oct 16, 2017

Actually I don't think there is a trailing whitespace. All the lines in the CI log have a space at the end. Have you just tried [[ "$JAVA_VERSION" != "1.8" ]]?

@liufengyun
Copy link
Contributor Author

Yes, I also tried just use double brackets, it didn't work either.

@liufengyun
Copy link
Contributor Author

The CI shows it works for MingW and Cygwin.

liufengyun/packtest#5

Copy link
Contributor

@allanrenucci allanrenucci left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @liufengyun. I will upload the new artefacts to Dotty release

@allanrenucci allanrenucci merged commit 0ad58ca into scala:master Oct 23, 2017
@allanrenucci allanrenucci deleted the fix-cygwin branch December 14, 2017 19:20
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.

2 participants