Skip to content

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