awx-ee-custom/tools/check_ansible_builder_changed.sh
2021-05-19 20:22:08 +08:00

15 lines
283 B
Bash
Executable File

#!/bin/bash -e
DIRTY=$(git status --porcelain | wc -l)
if [ "$DIRTY" -ne 0 ]; then
echo "ERROR: ansible-builder context is out of date, please re-run: "
echo ""
echo " tox -ebuild"
echo ""
echo "And commit changes."
git status
git diff
exit 1
fi