about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2019-12-02 11:49:38 -0800
committerJosh Stone <jistone@redhat.com>2019-12-02 11:49:38 -0800
commitb1ececa669cf6b1481281efb580f2384dfcddfd5 (patch)
treef7d8958772296b4492cc5bf69c9a0193588af090 /src
parentfdc0011561c6365c596dfd8fa1ef388162bc89c7 (diff)
downloadrust-b1ececa669cf6b1481281efb580f2384dfcddfd5.tar.gz
rust-b1ececa669cf6b1481281efb580f2384dfcddfd5.zip
[CI] fix the `! isCI` check in src/ci/run.sh
Using `if [ ! isCI ] || ...` doesn't run any command, just tests `isCI`
as a string, whereas `if ! isCI || ...` will actually run the `isCI`
command and negate its exit status.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ci/run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index ae5b22493ab..38d1d2baf25 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -23,7 +23,7 @@ fi
 ci_dir=`cd $(dirname $0) && pwd`
 source "$ci_dir/shared.sh"
 
-if [ ! isCI ] || isCiBranch auto || isCiBranch beta; then
+if ! isCI || isCiBranch auto || isCiBranch beta; then
     RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
 fi