Skip to content

Commit b1ececa

Browse files
committed
[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.
1 parent fdc0011 commit b1ececa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ci/run.sh

+1-1
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)