blob: aca880e2607038c0ae6d43df563b906494b86e3b [file] [log] [blame]
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
trap 'rm -f "${temp}"' EXIT INT
bin/cbuildbot_view_config -d -s --pretty > "${temp}"
mv "${temp}" cbuildbot/config_dump.json
if [ "$(git diff cbuildbot/config_dump.json)" ]; then
echo "You have uncommitted changes to cbuildbot/config_dump.json"
echo "This is likely because you have modified cbuildbot/"
echo "Please --amend your commit to include config_dump.json."
echo "In future, you can update the dump file with the command"
echo "bin/cbuildbot_view_config -d -s --pretty > cbuildbot/config_dump.json"
exit 1