#!/usr/bin/env bash set -e set -u set -o pipefail yarn lavamoat:auto if git diff-index --quiet HEAD then echo "LavaMoat policy is up-to-date" else echo "LavaMoat policy requires updates" exit 1 fi