Skip to content

Commit 3b878aa

Browse files
authored
Rollup merge of #66974 - cuviper:not-isCI, r=alexcrichton
[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.
2 parents c31773c + b1ececa commit 3b878aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fi
2323
ci_dir=`cd $(dirname $0) && pwd`
2424
source "$ci_dir/shared.sh"
2525

26-
if [ ! isCI ] || isCiBranch auto || isCiBranch beta; then
26+
if ! isCI || isCiBranch auto || isCiBranch beta; then
2727
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
2828
fi
2929

0 commit comments

Comments
 (0)