blob: 9c62a2cd79e8caedbd151e520690c7c86bf41f70 [file] [log] [blame]
#!/bin/bash
# Copyright 2022 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
# This script is used to fetch the prebuilt that is needed by fortune-teller package build.
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"/..
readonly REPO_ROOT="${REPO_ROOT}"
readonly BAZELISK_TOOL="${REPO_ROOT}/third_party/sdk-integration/tools/bazel"
download_prebuilt() {
echo "Downloading prebuilt binaries."
# If we just run bazelisk it will ensure that bazel is installed
echo "Downloading bazel"
$BAZELISK_TOOL --version
echo "Download complete."
}
main() {
download_prebuilt
}
main "$@"