gecko-dev/servo/etc/ci/lockfile_changed.sh
2016-12-08 13:29:07 -08:00

14 lines
366 B
Bash
Executable File

#!/usr/bin/env bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
set -o errexit
set -o nounset
set -o pipefail
diff="$(find . -name 'Cargo.lock' -print0 | xargs -0 git diff)"
echo "${diff}"
[[ -z "${diff}" ]]