diff --git a/src/test/shell/bazel/bazel_rules_test.sh b/src/test/shell/bazel/bazel_rules_test.sh index 38ef5c7525e012..5650f0d458e283 100755 --- a/src/test/shell/bazel/bazel_rules_test.sh +++ b/src/test/shell/bazel/bazel_rules_test.sh @@ -608,18 +608,10 @@ EOF cat >pkg/rules.bzl <<'EOF' _SCRIPT_EXT = ".bat" _SCRIPT_CONTENT = """@ECHO OFF -if NOT "%FIXED_ONLY%" == "fixed" { - exit /B 1 -} -if NOT "%FIXED_AND_INHERITED%" == "inherited" { - exit /B 1 -} -if NOT "%FIXED_AND_INHERITED_BUT_NOT_SET%" == "fixed" { - exit /B 1 -} -if NOT "%INHERITED_ONLY%" == "inherited" { - exit /B 1 -} +if not "%FIXED_ONLY%" == "fixed" exit /B 1 +if not "%FIXED_AND_INHERITED%" == "inherited" exit /B 1 +if not "%FIXED_AND_INHERITED_BUT_NOT_SET%" == "fixed" exit /B 1 +if not "%INHERITED_ONLY%" == "inherited" exit /B 1 """ EOF else