aboutsummaryrefslogtreecommitdiff
path: root/ci/macos_xcode_bazel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/macos_xcode_bazel.sh')
-rwxr-xr-xci/macos_xcode_bazel.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/ci/macos_xcode_bazel.sh b/ci/macos_xcode_bazel.sh
index 9e14e660..f5f2d759 100755
--- a/ci/macos_xcode_bazel.sh
+++ b/ci/macos_xcode_bazel.sh
@@ -19,13 +19,13 @@
set -euox pipefail
-if [[ -z ${ABSEIL_ROOT:-} ]]; then
+if [ -z ${ABSEIL_ROOT:-} ]; then
ABSEIL_ROOT="$(realpath $(dirname ${0})/..)"
fi
# If we are running on Kokoro, check for a versioned Bazel binary.
-KOKORO_GFILE_BAZEL_BIN="bazel-3.7.0-darwin-x86_64"
-if [[ ${KOKORO_GFILE_DIR:-} ]] && [[ -f ${KOKORO_GFILE_DIR}/${KOKORO_GFILE_BAZEL_BIN} ]]; then
+KOKORO_GFILE_BAZEL_BIN="bazel-2.0.0-darwin-x86_64"
+if [ ${KOKORO_GFILE_DIR:-} ] && [ -f ${KOKORO_GFILE_DIR}/${KOKORO_GFILE_BAZEL_BIN} ]; then
BAZEL_BIN="${KOKORO_GFILE_DIR}/${KOKORO_GFILE_BAZEL_BIN}"
chmod +x ${BAZEL_BIN}
else
@@ -41,7 +41,7 @@ echo "---------------"
cd ${ABSEIL_ROOT}
-if [[ -n "${ALTERNATE_OPTIONS:-}" ]]; then
+if [ -n "${ALTERNATE_OPTIONS:-}" ]; then
cp ${ALTERNATE_OPTIONS:-} absl/base/options.h || exit 1
fi