ruby-changes:56846
From: Kazuhiro <ko1@a...>
Date: Wed, 7 Aug 2019 09:04:26 +0900 (JST)
Subject: [ruby-changes:56846] Kazuhiro NISHIYAMA: b839721ae7 (master): .travis.yml: Use `-eq` instead `=` to compare integers
https://git.ruby-lang.org/ruby.git/commit/?id=b839721ae7 From b839721ae7814a6e74de59eb40586a32a398545f Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Wed, 7 Aug 2019 09:03:08 +0900 Subject: .travis.yml: Use `-eq` instead `=` to compare integers diff --git a/.travis.yml b/.travis.yml index fa63709..02efe76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -91,7 +91,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L91 - |- for seconds in 1 25 100 -1; do sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" - if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi + if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi done - |- for seconds in 1 25 100 -1; do @@ -112,7 +112,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L112 valgrind \ zlib1g-dev - if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi + if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi done - &clang-8 @@ -145,7 +145,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L145 valgrind \ zlib1g-dev - if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi + if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi done # -------- @@ -291,7 +291,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L291 - |- for seconds in 1 25 100 -1; do sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test" - if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi + if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi done - |- for seconds in 1 25 100 -1; do @@ -314,7 +314,7 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L314 zlib1g-dev:i386 \ zlib1g:i386 - if [[ $? = 0 ]]; then break; else sleep "$seconds" || exit 1; fi + if [[ $? -eq 0 ]]; then break; else sleep "$seconds" || exit 1; fi done - &pedanticism -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/