blob: c0012321033b5773f7f21a96a119780975169c2f [file] [log] [blame]
#!/usr/bin/env bash
# Copyright 2018 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.
# Installs or updates prebuilt tools.
set -o errexit
set -o pipefail
readonly SCRIPT_ROOT="$(cd $(dirname ${BASH_SOURCE[0]} ) && pwd)"
if ! which cipd > /dev/null; then
echo "cipd must be in the PATH. See\
https://fuchsia.googlesource.com/infra/recipes/+/master/README.md"
exit 1
fi
cipd ensure -ensure-file "${SCRIPT_ROOT}/cipd.ensure" -root "${SCRIPT_ROOT}" \
-log-level warning