Skip to content

fix: use correct comparison operator in CI script#5406

Merged
htuch merged 1 commit intoenvoyproxy:masterfrom
derekargueta:dereka/ci-gt-fix
Dec 24, 2018
Merged

fix: use correct comparison operator in CI script#5406
htuch merged 1 commit intoenvoyproxy:masterfrom
derekargueta:dereka/ci-gt-fix

Conversation

@derekargueta
Copy link
Copy Markdown
Member

Description:
> is for string lexical comparison, -gt is for numerical comparsion

➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 5 > 1 ]]; echo $?
0
➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 05 > 1 ]]; echo $?
1
➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 05 -gt 1 ]]; echo $?
0
➜  envoy git:(dereka/ci-gt-fix) ✗

Risk Level: low

Signed-off-by: Derek Argueta dereka@pinterest.com

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Copy link
Copy Markdown
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Ta!

@htuch htuch merged commit 0e5b995 into envoyproxy:master Dec 24, 2018
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
> is for string lexical comparison, -gt is for numerical comparsion

➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 5 > 1 ]]; echo $?
0
➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 05 > 1 ]]; echo $?
1
➜  envoy git:(dereka/ci-gt-fix) ✗ [[ 05 -gt 1 ]]; echo $?
0
➜  envoy git:(dereka/ci-gt-fix) ✗

Risk Level: low

Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Fred Douglas <fredlas@google.com>
@derekargueta derekargueta deleted the dereka/ci-gt-fix branch March 27, 2019 21:54
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