blob: 21ba55b1751c1a93f1a4eaa1d278af8b814bb1d8 [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 > "${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:"
echo " 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 > cbuildbot/config_dump.json"
exit 1