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

Changing conditional operators #151

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Changing conditional operators #151

merged 1 commit into from
Dec 11, 2019

Conversation

staszke
Copy link
Contributor

@staszke staszke commented Dec 11, 2019

No description provided.

@@ -11,15 +11,15 @@ services:
jdk:
- oraclejdk11
before_script:
- if [[ "$TRAVIS_BRANCH" = "master" && "$TRAVIS_EVENT_TYPE" = "push" ]]; then export
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" ]]; then export
Copy link
Contributor

Choose a reason for hiding this comment

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

Changing to double equals won't make any kind of difference, this is bash, not JS :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess you're right. I always thought that = and == work differently within [[ command, turns out it's the double quoting that makes things different. Although the essence of those changes is the 22nd line.

Copy link
Contributor

Choose a reason for hiding this comment

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

There is a difference between them, but in this case it doesn't matter (i think it has to do with pattern matching).

@staszke staszke merged commit 1ce421a into master Dec 11, 2019
@staszke staszke deleted the fix-ci-cd branch December 19, 2019 12: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